Home | Mirror | SearchITEYE 博客 | OSChina 博客 | 51CTO 博客

4.2. 數組與字元串操作

implode(separator,array)

		
<?php
$arr = array('Hello','World!');
echo implode(" ",$arr);
?>
		
		

explode(separator,string,limit)

		
<?php
$str = "Hello world!";
print_r (explode(" ",$str));
?>
		
		
comments powered by Disqus