Tag Archives: PHP

PHP Array Functions

PHP supports many array functions that enable developers to manipulate arrays. PHP arrays allow you to store, manage and operate on variables. You can use either a single dimensional or multidimensional array that can be created by the developer or by any function. This feature comes with PHP and there is no need to make any configuration changes… Read More »

Core PHP and Frameworks

There is some difference between core PHP and the frameworks. Core PHP is the basic programming language that allows developers to create dynamic web pages without any need of an extra library which may not be possible if you work with PHP framework. So it is somehow important that you learn about the Core PHP programming to understand… Read More »

PHP – DOM Parser

DOM parsers work well with both XML and HTML. This parser is tree-based where DOM first loads the data into the Dom object then it will load the data to the browser.  Below example will help you to understand how to access the HTML data in the web browser. Example: <?php   $html = ‘       <head>          <title>DATA</title>      </head>       <body> … Read More »

PHP – Simple XML

This simple XML parser will parse the name, containing attributes and the text content within the simple XML file. These are tree-based parsers. PHP supports some of the XML functions that are described below. simplexml_load_file()- this function has five parameters among which the first parameter is mandatory as it takes the file path to load the XML file.… Read More »

PHP – XML introduction

What is XML and how you can use it with PHP XML which is a mark-up language allows you to share data across the network. XML is tree-based and event-based. PHP supports four XML parsers that are based on libxml, those parsers are- simple XML parser, DOM XML parser, XML parser and XML reader. Simple XML parser- these… Read More »