
 
  文章来源: 
    
      100素材网
  
  更新时间:
    
   2014-08-02 14:37:34
  
  
  php strlen函数  php字符串截取函数  php字符串长度  字符串长度函数   
     php strlen函数获取字符串长度
    strlen函数语法格式如下
int strlen(string str);
	
	例子:
 
<?php $str="abcdef"; echo "abcdef的长度是".strlen($str)."<br>"; $str="abc def"; echo "abc def的长度是".strlen($str); ?>
	
  浏览次数次 
     上一篇文章: php 输出匹配字符串后面的全部内容strstr函数 
       下一篇文章: php替换字符串函数ereg_replace 
   
                
            
推荐阅读:
      
      
      
      
      
      
      
      