list() and each() functions usage

[php]
$getstrings = explode(‘"’, $splitter.$s.$splitter);

$delimlen = strlen($splitter);
$instring = 0;

while (list($arg, $val) = each($getstrings))
{
[/php]

One more example

[php]
$data = ‘blalll==115||blah2==3||blah4==234′;
$d_price_a = explode(‘||’, $data);
list(,$d_price) = explode(‘==’, $d_price_a[0]);
if($d_price)
{

}
[/php]

Before using each() method the array must be reset by reset();