note 98887 deleted from function.split by thiago

[email protected] Sun, 13 Feb 2011 18:59:28 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: admin at ejaz dot com dot sa 

----

Use split with implode to fetch array values or elements:

<?php
list( $ip, $line, $filename) = split( ',', implode( ',', array('100.1.2.3','23','/index.php') ) );

echo $ip.$line.$filename;
?>

Result :

100.1.2.3
23
/index.php