Php

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

Google+ Pinterest LinkedIn Tumblr

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 then go to Forloop

Example

To know the array total values use count(); Functions

 2. Count();

This Function is used to fin the count of array key in the array.

3. Associative array()

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

example

For more Explanation click here

I'm Rajasekar - Web developer, Freelancer, Blogger and Owner of DeveloperDesks. From India lives in Bahrain. I love to do coding, Creating websites and trying different with code and designs. You Can Hire Me