Hi,
I've been tryin to use preg_match to search through a string. But it
doesn't seem to function with a variable as the search string. I've
tried many variations, but I'm not sure how to do it.
$data =
file_get_conten ts("http://cgi.ebay.co.uk/ws/eBayISAPI.dll?V iewItem&item=$i number");
if(preg_match('/\$'.$susername. '\./', $data)){
print("
Sellers name is right !
");
}
....how can I do it ?
Thanks,
Ben
I've been tryin to use preg_match to search through a string. But it
doesn't seem to function with a variable as the search string. I've
tried many variations, but I'm not sure how to do it.
$data =
file_get_conten ts("http://cgi.ebay.co.uk/ws/eBayISAPI.dll?V iewItem&item=$i number");
if(preg_match('/\$'.$susername. '\./', $data)){
print("
Sellers name is right !
");
}
....how can I do it ?
Thanks,
Ben
Comment