[Omaha.pm] explode gt split

Jay Hannah jay at jays.net
Mon Jun 23 08:55:10 PDT 2008


Wow. PHP's explode() is a much cooler name than Perl's boring old  
split().

<?php
     $expFileNames  = `ls -t output/`;
     $expFileNames  = explode("\n",$expFileNames);
?>

Laugh,

j




More information about the Omaha-pm mailing list