PHP
PHP Tutorial for Beginners in Developer Desks, To Learn PHP in simple steps from basic to advanced concepts with examples including , Predefined Variables Examples, Built-in Function, OOPS , Advanced , Numbers, Arrays, Hash File I/O, IF, ELSE IF, Do, Regular Expressions, While Loops, Operators, GET, POST, Coding Standard, Subroutines, Modules, Socket Communication, File Management, Reference, Syntax Overview, Special Variables, MySQL Login, Form Validation, Web Design, PayPal Integration, Library, Ajax Search, Ajax Auto Complete Search, Ajax XML Parser, Ajax RSS Feed Example, Simple XML, XML Introduction, SAX Parser Example, DOM Parser Example, Simple XML GET, Core vs frame works , Frame Works, Design Patterns.
For beginners and professionals with examples of file, session, date, array, form, functions, time, XML, ajax, MySQL, regex, string, oops Concept.
We are Commonly download the image from google and Upload it without compressed, Its made a problem while loading the website, Its reduce the page speed, So we need to compress the Image size before upload into your site, So here we go to learn How To Compress Image File Size Using Php, Demo Step…
If we have a very large array values in Indexed or Associative array, we have to search or filter the particular array value or key. Array_Search function is used to find the value. This function used to search an array for a value and returns the key. <?php $search =array(‘a’=>’php’,’b’=>’css’,’c’=>’html,’d’=>’dssd’,’e’=>’eeee’,f=>’fdfd’,’g’=>’dsfsd’,….); echo array_search(‘css’,$search); ?> In the…
Function to find particular value or key in the array for php – In_array In_array Functions is used to find the value in the array list using this function you can find the value is present or not in array queue. syntax: In_array(); for example have to find “Developerdesks” in the given array <?php $var =…
A multidimensional array is an array containing one or more arrays. Three-Dimensional array For three dimensional array u have to use two for loop condition find 0 indexed array value and then 0 indexed array value <?php $developedesks = array( “Skills” => array ( “php” => 80, “css” => 85, “html” => 80 ), “design” => array…
Multidimensional Array concept in Php A multidimensional array is an array containing one or more arrays. Its is solution for to know how to handle a array with in array Example 1.Two-dimensional array 2.Three-dimensional array 1.Two-dimensional array <?php $develop= array( array(“developer”,php,html), array(“desks”,php5,html5), array(“raja”,css,ajax), array(“sekar”,jquery,drupal) ); $count= count($develop); echo “$count”; for ($row = 0; $row <…
Associative array is array that use named keys that you assign to them. example <?php $var2 = array(‘raj’=’123′,’sekar’=>’213′,’developer’=>’545′,’desks’=>’345’); echo $var2[‘raj’]; // output is 123 echo $var2[‘sekar’]; // output is 213 echo $var2[‘developer’]; // output is 545 echo $var2[‘desks’]; // output is 345 ?> named key ‘raj’ has vlaue ‘123’; IF the named key is unknown…
How to use for loop concept for php using find array values for loop is used to initialize the code for how many times it should run. syntax for (initialization counter; total counter; increment counter) { code to be executed; } for example <?php for ($x = 0; $x <= 5; $x++) { …
How to print array values indexing in php using Indexed array Indexed array is array with a numeric index. Index will Start with ‘0’ and it can be assigned automatically example < ?php $design = array(‘photoshop’,’flash’,’dreamviewer’,’html5′); echo $design[0]; //output is photoshop echo $design[1]; //output is flash ?> If you know the total number of array…
What is Array? how to use php array? An array is a variable, which can hold more than one value at a time. php array basic function defined as array(); example < ?php $design = array(‘photoshop’,’flash’,’dreamviewer’,’html5′); echo $design[0]; //output is photoshop echo $design[1]; //output is flash ?> Three Types of Php array 1. Indexed array 2.…