Home | Mirror | Search

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