if (isset($data['user_web']) && $data['user_web']) { if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; } echo "".$data[ "; }