err... sorry, the second line should be
$array = explode(':', $string);
Cristian
Cristian Lavaque wrote:
> yup
>
> you could do something like this
>
> $string = 'field_value1:field_value2:field_value3';
> $array = explode(':', $str);
> foreach($array as $substring){
> list($field, $value) =
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/e
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 PROTEC
3 matches
Mail list logo