one final question and i will finally get this working
Posted: Thu Nov 03, 2005 3:34 pm
I need to take an array and chop it into 2 different arrays according to the Key
for example
$name is the main array
$hold holds the key names and the it parses to unique because all i need is 1 occurance of the key to use the implode to create a variable to use in MySQ Insert statements.
carrierdescription and carrierlogo
now $content holds the values of the keys and i need a way to parse them into seperate arrays to implode into MySQL
What do i use to cut an array up but "carrierdescription' and 'carrierlogo'?
for example
Code: Select all
if(is_array($name)){
foreach($name as $k4=>$attributes){
$hold[] = strtolower($k4);
$row = array_unique($hold);
$content[] = $attributes;$hold holds the key names and the it parses to unique because all i need is 1 occurance of the key to use the implode to create a variable to use in MySQ Insert statements.
carrierdescription and carrierlogo
now $content holds the values of the keys and i need a way to parse them into seperate arrays to implode into MySQL
What do i use to cut an array up but "carrierdescription' and 'carrierlogo'?