Simple one hopefully, is there a way I can use strtolower and str_replace together. At the moment I am changing the value of a variable and declaring it seperately, and thought if i could do this together it would be more efficient?
$afixteam = str_replace(" ","-",$fixData['ateam_name']);
$afixteamlink = strtolower($afixteam);
Thanks.
this should do it. You can run methods within methods as follows, condensing to a single line.
$afixteam = strtolower(str_replace(" ","-",$fixData['ateam_name']));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With