note 80116 deleted from language.oop5.magic by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: daniel at fanetworks dot net 

----

code that was posted below:
<?php
            $str = '';
            $values = array_values($var);
            for ( $i=0; $i<count($values); $i++ ) {
                $str .= "'".$values[$i]."' ,";
            }   
?>

Would of been so much easier written as 

$var = "'".implode("', '",$var)."'";

If you really wanted to do it by eval that is instead of call_user_func_array
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.