Tag Archives: if loop

How to print array values in php using mysql – associative array


Notice: A non well formed numeric value encountered in /home/cinemau0/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Associative array is array that use named keys that you assign to them. example

named key ‘raj’ has vlaue ‘123’; IF the named key is unknown and unlimited the use foreach

output

Similar like Associative array Multidimensional Array concept in Php A multidimensional array is an array containing one or more arrays.… Read More »

How to use for loop concept for php using find array values

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

output

for loop php is used to count and… Read More »

How to print array values in php using find i value – Indexed array

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

If you know the total number of array values means you can do like this, For unknown and unlimited array values are present… Read More »

Basic array concept and how to use php array and mysql

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

Three Types of Php array 1. Indexed array 2. Assocaiative array 3. Mutlidimentional array Click Here to know indexed array