make a simple array with 1 dimension sort of into 2


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.