phpのexplode()とsplit()の違い

899 ワード


        ,    ,split      : 
  

    1. 
   
   $test = end(explode('.', 'abc.txt'));
   echo $test;//output txt

      
  

    2. 
   
   $test1 = end(split('.','abc.txt'));
   echo $test1;//no output

      
  

    3. 
   
  $test1 = end(split('\.','abc.txt'));
   echo $test1;//output txt