Array Not Set

Am I doing something wrong? With the code below, the array is not set:

$TheData = preg_match_all("/\CDATA[(.*?)]]>/s", $Response, $url, PREG_SET_ORDER);
$testing = $url[1][0];
echo “array is set.”;
echo “array not set.”;

if the value of $testing is NULL…then it would echo “array not set”…so try to var_dump($testing) and see the value…isset() returns false if the var is not set or the var is null…

Sponsor our Newsletter | Privacy Policy | Terms of Service