I have a nested json, and i used the following code to extract, and it lists all the data from it, however i want to skip a particular data
Say the list is this
$ip = Array ( [0] => 1.1.1.1 [1] => 1.1.1.2 [2] => 1.1.1.3 [3] => 1.1.1.4 [4] => 1.1.1.5 )
I want to list all the IPs in a line and i can achieve that with following code in php
foreach ($ip as $character) {
$state .= "<div 'col-sm-7 text-left'>$character<br></div>";;
}
However say i want to skip 1.1.1.3, how can i do that?
I want the output to be like
1.1.1.1
1.1.1.2
1.1.1.4
1.1.1.5