yup
you could do something like this
$string = 'field_value1:field_value2:field_value3';
$array = explode(':', $str);
foreach($array as $substring){
list($field, $value) = explode('_', $substr);
$$field = $value;
}
hope this helps
Cristian
Mehdi Achour wrote:
> Hi,
>
> Check this : php.net/explode
>
> didou
>
>
> Carles Xavier Munyoz Bald� wrote:
>
>> Hi,
>> I have a string with the format:
>> "field_value1:field_value2:field_value3"
>>
>> Is there any PHP string manipulation function to extract this values
>> from the string ?
>>
>> Greetings.
>> ---
>> Carles Xavier Munyoz Bald�
>> [EMAIL PROTECTED]
>> http://www.unlimitedmail.net/
>> ---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php