help needed in ( strstr )
Posted: Thu Apr 08, 2010 9:54 am
i have a .dat file save on it the user name - the password like :
mina - 12345
mary - 54321
jaky saad - 987654
i need a function to get the user name in a variable and i used this script but it gives me that "wrong parameter count for strstr"
$buffer_line = trim($line);
$buffer_name = strstr($buffer_line, '-', true);
note: i found this exact function on php.net
thank you for your help
mina - 12345
mary - 54321
jaky saad - 987654
i need a function to get the user name in a variable and i used this script but it gives me that "wrong parameter count for strstr"
$buffer_line = trim($line);
$buffer_name = strstr($buffer_line, '-', true);
note: i found this exact function on php.net
thank you for your help