Change a variable to
0This simple function checks the name of a variable and if it is a certain value changes it, else it will return the original value.
Twitsnip is a place to post code snippets and share them. Login with your existing Twitter account, if you don't have a Twitter account simply create on at www.twitter.com
This simple function checks the name of a variable and if it is a certain value changes it, else it will return the original value.
This was the first function I ever wrote and I still use it in nearly every PHP application I create.
I use this in case someone has forgotten there password alongside some other code. Hope it is useful!
Been using this useful script to get Latitude And Longitude from there address. Work with first 3 letters of postcode only for some reason.