How to get specific array value in php?

Through this article I will tell you how you can get specific value from any array through php. So let’s try to understand through example.

Extract specific array value by php, Find Specific array value using php, How to fetch Specific array value using php

The example explains how to put the values ​​of an array in a variable. Then echo its specific value. Below you can understand with the help of example.

$a = array(1=>'a', 2=>'b', 3=>'c');
echo $a[2];
//display the value with key 2:
// output b
//remove the value with key 2 (throw-out / bring-out in your language)
//now display whole array to show that value with key 2 is gone
// output Array ( [1] => a [3] => c )