Posted By

deadmoon on 10/23/06


Tagged

array


Versions (?)

make a simple array with 1 dimension sort of into 2


 / Published in: PHP
 

URL: http://london-seo.com/

  1. <?php
  2. foreach ($listofpageswithphpextension as $pgs) {
  3. list($pgs, $extension) = explode('.',$pageLink);
  4. $page = str_replace($pagelink,"$pgs.html",$page);
  5. }
  6.  
  7.  
  8. $data = "foo:*:1023:1000::/home/foo:/bin/sh";
  9. list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
  10. echo $user; // foo
  11. echo $pass; // *
  12. ?>

Report this snippet  

You need to login to post a comment.