hello,
I have this code sample:
class Sexboard extends Master
{
var $userid;
var $errormessage;
var $dc_metro = array(20, 46, 51);
....
function get_select_by_u ser_online_sql( $stateid, $cityid)
{
...
if( in_array( $stateid, $this->$dc_metro ) )
{
...
}
}
}
My question is why do I get a warning message saying the wrong data type
for the second parameter?
Thanks,
Paul
I have this code sample:
class Sexboard extends Master
{
var $userid;
var $errormessage;
var $dc_metro = array(20, 46, 51);
....
function get_select_by_u ser_online_sql( $stateid, $cityid)
{
...
if( in_array( $stateid, $this->$dc_metro ) )
{
...
}
}
}
My question is why do I get a warning message saying the wrong data type
for the second parameter?
Thanks,
Paul
Comment