Persistent connections in PHP with MySQL

Persistent connections are links that do not close when the execution of your script ends. When a persistent connection is requested, PHP checks if there’s already an identical persistent connection (that remained open from earlier) – and if it exists, it...

Parsing xml data and converting to array in php

Some time we come accross a situation where we have to parse the xml data to array. To achieve that we have used the “SimpleXML” Library available in php. This extension is enabled by default in php. Sample xml : [codesyntax lang=”php”]...