I am missing something here.
I have an array. Each value in the array needs to be assigned to a value. The array values are $80.00, 1234567891X, and sdfsdfsd
here is the code i am using:
foreach ($fields as $value) {
echo trim($value); echo "<BR>";
if (ereg ("\$",trim($value)) ){
$cost=$value;}
elseif (eregi("[a-z]",trim($value)) ){
$isbndesc=$value;}
elseif (ereg("([0-9])", $value)){
$isbn=$value;}
in the end though, only the price variable is found. Am I missing something?