Some useful but lesser known PHP functions
In this article I am going to cover up some lesser known but Useful PHP Functions which offers some great functionalities. Not all but many of these are usually re coded. Here’s the list of such Useful PHP Functions and features that I have compiled over time. These might also come in handy for you in your day to day coding.
- Converting Newline to Break – nltobr
- Placeholder replacement – strtr
- Parsing Url – parse_url
- Magic Constants
- Serialization – json_encode & json_decode