I need to increment the key value from resellerclub api and print the data based on the key value. From API the data is received based on the key values as 1,2,3,4,5 et and these key values get incremented.
Find below the json array:
Array ( [recsindb] => 10 [recsonpage] => 10 [9] => Array ( [timetolive] => 12000 [status] => Active [type] => A [host] => @ [value] => 203.168.176.23 ) [8] => Array ( [timetolive] => 38400 [status] => Active [type] => A [host] => @ [value] => 2.2.2.2 ) [7] => Array ( [timetolive] => 38400 [status] => Active [type] => A [host] => @ [value] => 1.2.3.4 ) [6] => Array ( [timetolive] => 38400 [status] => Active [type] => A [host] => @ [value] => 12.34.56.78 ) [5] => Array ( [timetolive] => 38400 [status] => Active [type] => A [host] => @ [value] => 12.2.3.2 ) [4] => Array ( [timetolive] => 38400 [status] => Active [type] => A [host] => @ [value] => 137.135.116.67 ) [3] => Array ( [timetolive] => 28800 [status] => Active [type] => A [host] => www [value] => 103.73.189.10 ) [2] => Array ( [timetolive] => 28800 [status] => Active [type] => A [host] => * [value] => 103.73.189.10 ) [1] => Array ( [timetolive] => 28800 [status] => Active [type] => A [host] => @ [value] => 103.73.189.10 ) [10] => Array ( [timetolive] => 12000 [status] => Active [type] => A [host] => domain [value] => 12.3.4.6 ) )
I need to display the datas of TTL value,status and host based on the arrays, which is received as numbers. Help me with this using foreach loop in laravel.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire