+91-943-185-6038 me@shashidharkumar.com
PHP Type Casting

PHP Type Casting

Contents Types Casting Cast to string Cast to int Cast to binary (PHP6) Cast to unicode (PHP6) Cast to boolean Cast to object Cast to float Check for Type Check String Check INT Check Array Check Object Check Float Check Double Check Real Check Bool Check Buffer Check...
Convert xml to html

Convert xml to html

This chapter explains how to display XML data as HTML. In the example below, we loop through an XML file (test.xml), and display each element as an HTML table row: <script type=”text/javascript”> var xmlDoc; if (window.XMLHttpRequest) { xmlDoc=new...
PHP Type Casting

PHP Tutorial – Part VI

Introduction In this part I will continue this and also show you how to use PHP and forms together to make your PHP scripts useful. Setting Up Your Form Setting up a form for use with a PHP script is exactly the same as normal in HTML. As this is a PHP tutorial I will...
PHP Type Casting

PHP Tutorial – Part V

Introduction One of the major uses of a server side scripting language is to provide a way of sending e-mail from the server and, in particular, to take form input and output it to an e-mail address. The Mail Command Mail is extremely easy to send from PHP, unlike...
PHP Type Casting

PHP Tutorial – Part IV

The WHILE Loop The WHILE loop is one of the most useful commands in PHP. It is also quite easy to set up and use. A WHILE loop will, as the name suggests, execute a piece of code until a certain condition is met. Repeating A Set Number Of Times If you have a piece of...