Blogs On php

About php

PHP is one of the most popular server-side scripting and HTML embedded languages which is designed primarily for web development but also used as a general-purpose programming language. HTML embedded means that you can use PHP statements within an HTML code. The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. PHP scripts can only be interpreted on a server that has PHP installed. PHP code may be embedded into HTML code.

Switch statement in php

Switch case in php with multiple case example

Switch statement is used to execute one statement from multiple conditions in PHP. It works like PHP if-else-if statement. But it's better that if-else-if statement. Syntax for Switch statement in ph...

How to secure input in php

php sanitize form input

Sanitizing data means Remove any illegal character from the data.  In php you need to impliment this one for secure input for MySQL. This one also help to know you about your question - How...

Getting checkbox values on submit in PHP

Getting values on submit in PHP from multiple checkbox

If you have multiple options, then you want to get the checked values to store them in variable on form submit, Then you can use this technique. A good method which is a favorite of mine and for many ...

Convert text to image in php

How to Convert Text to Image using

Some of the cases we need to create an image dynamically when the web page is loading, Then a question raised in the mind - Can I convert text to image in PHP? the answer is Yes! why not. For doi...

Generate QR code in php using google api

How to Generate QR Code with PHP

The QR code (Quick Response Code) is the trademark for a type of matrix barcode. A QR code is a machine-readable code consisting of an array of black and white squares. Normally we can say that Q...

Convert multidimensional array to XML file in PHP

Array to XML and XML to Array in PHP

XML stands for eXtensible Markup Language. XML is a markup language that encodes documents in a machine-readable and human-readable format. XML was designed to store and transport data. XML is often u...

Functions in PHP

How to use functions in PHP

PHP Functions: PHP function is a piece of code that can be reused many times. PHP functions are similar to other programming languages. More than thousands pr-define functions are avai...

Find the location of an Item in multidimensional array

Finding position of an element in a multi-dimensional array

Sometimes we have a large multi-dimensional array and we need only one tree of an array where a specific key word or specific element are exits. So in this situation we require searching in an array o...