Re: Using Arrays in PHP converting a PHP array into a string
This simple function converts a PHP array to a string containing a PHP array declaration. It can be used to put an array into a database field. It can then be retrieved and eval()'d in another script. <?php
$arr = array('W','E','L','C','O','M','E');
$string = implode($arr, '');
echo $string;
?> Output:
WELCOME
__________________ Thanks & Regards
Sabari... |