PHP has lot of in-built Functions for use. PHP also provides opportunity to create use defined function also as available with other programming languages. We will discussing here the various type of User defined PHP Functions What is a function? A function is a piece of code which takes one more input in the form […]
Web development
Useful PHP string functions
Here are detailed working on useful PHP string functions strlen() The PHP strlen() function returns the length of a string.The example below returns the length of the string “john”Example <?php echo strlen(“John”); ?> Output 4 Chr() Converts an ASCII value to its equivalent character Example The ASCII value 46 is the & symbol <?php $str […]
include or require function in PHP with practical examples
Website design require header,footer,side bar,right bar, ad bar on multiple pages.It is not possible to change these on thousand of web pages whenever we want to change anything. Include function in php solve this problem. We can use include function in PHP and include the content of a PHP file into another PHP file before […]
How to Use HTML Inside PHP on the Same Page
We know that it is a web server that processes a PHP file before sending the processed results to the web browser. But the question is how does a server know whether a file is a PHP file or not. Answer is by default servers look for PHP only in files that end with the […]
PHP array functions
In this post , we will be discussing the php array functions. As with any other programming language,PHP has its own array functions What is array A array is the chain of values stored in single variable where values can be retrived based on there position in the array $arr ={a,b,c,d,e,f}; There are three type […]
How to use if else condition in php
if else condition in php PHP programming like other languages have the conditional statement processing also.Conditional statement add intelligence to our scripts. This gives us the functionality to perform various command based on various conditions We will be working on if/then/else statement in this post i.e if else in php The basic format for the if/then/else […]