Update 2024-03-27: Greatly expanded the "Samples" page and renamed it to "Glossary".
Update 2024-04-04: Added 5 million mid-2011 posts from the k47 post dump. Browse (mostly) them here.
Update 2024-04-07: Added ~400 October 2003 posts from 4chan.net. Browse them here.

Welcome to Oldfriend Archive, the official 4chan archive of the NSA. Hosting ~170M text-only 2003-2014 4chan posts (mostly 2006-2008).
[3 / 0 / ?]

[1396231574] Removing specific character from URL par.

No.958726 View ViewReplyOriginalReport
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 (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,