I run unsuccessfully
$cookie = "[email protected],777";
$cookie_tripped = trim(",", $_COOKIE['login']);
echo "Cookie: "$cookie_tripped[0];
It gives me
Cookie:
How can you do the following command in PHP?
awk -F, '{ print $1 }'
I run unsuccessfully
$cookie = "[email protected],777";
$cookie_tripped = trim(",", $_COOKIE['login']);
echo "Cookie: "$cookie_tripped[0];
It gives me
Cookie:
How can you do the following command in PHP?
awk -F, '{ print $1 }'
$cookie = "[email protected],777";
$cookie_tripped = split(",", $cookie);
echo "Cookie: " . $cookie_tripped[0];