PHP


19

Aug 2015

Arbitrary Number of Function Arguments in PHP

In PHP there is a method to pass arbitrary number of function arguments. For Example: Output: Without argument Single argument State Name1: Delhi Multiple argument call State Name1: Delhi State Name2: Mumbai State Name3: Uttrakhand


19

Aug 2015

Array Key Case Change function in php

Using array_change_key_case function we can easily change case of array key. Syntax: Example: case either CASE_LOWER or UPPER_CASE


19

Aug 2015

Add menu page with different name from sub menu page in WordPress

In wordpress if you are creating  a plugin the first sub menu page name is same as of plugin main menu page. like if the name of plugin menu is Fund the by default the name of its first sub menu is also Fund. To change this sub menu page you can make the slug for the submenu page equal that of the top level page.


19

Aug 2015

Error Reporting in PHP

In this article we are discussing error reporting in php and we also discuss why error reporting is important during development and why it is important to turn it off. for example: In this example i missing the line terminator or $var which is a semi colon. At that moment my error reporting is off. So if i run this code nothing has to be...

Read More


19

Aug 2015

PHP ARRAY

Like another programming language php also having array. Array is a special variable which can used to store multiple values of same data type. Array is used to hold all values under one single name and we used that value by referring that name of array. Array can be accessed by its index value. Types of Array: Numeric Array Associative Array Multidimensional Array. Numeric Array:  In...

Read More


19

Aug 2015

Variables in PHP

Variables are used to store information or a value to its. Like other programming language php have its own variable .but in php there is no need to define its data type it will be automatically regret its vale that it is of integer or character type. In php variable define with a sigh of ‘$’ i.e. $a, $abc etc. The first character after $...

Read More


15

Aug 2015

PDO (PHP Data Object)

PDO(PHP Data Object)  : PDO is a PHP extension for accessing databases in PHP. Advantages: 1) Security : In MYSQL connection we manually sanitise using mysql_real_escape_string() functions in order to avoid SQL injections. But with PDO this is all taken care for us and means we no longer have to worry about SQL injection. 2) Performance : PDO uses PHP 5′s OOP characteristics (Object Oriented Programming) so it...

Read More



Page 4 of 512345