Name: Anonymous 2014-03-30 22:06
Hello, I need to take a URL like so "www.example.com/abc.php?parameter=..variable.1.lol"; and insert ".variable.1.lol" into the abc.php page. However, I want to remove the first "." but not the later dots when inserting.
This would be easy if there was always a first dot (
HOWEVER, sometimes there won't be any dot and I'd end up removin the first letter accidentally. So how can I make PHP only subtract the first character in the variable when that character is a dot????????
Thank you very much,
This would be easy if there was always a first dot (
substr($item,1) if $item1 is $_GET['pareter'].HOWEVER, sometimes there won't be any dot and I'd end up removin the first letter accidentally. So how can I make PHP only subtract the first character in the variable when that character is a dot????????
Thank you very much,