Ben şu dizi var:
array(3) {
["status"]=>
int(1)
["statusmsg"]=>
string(2) "Ok"
["acct"]=>
array(43) {
[0]=>
array(23) {
["startdate"]=>
string(15) "10 Nov 01 02:46"
["plan"]=>
string(10) "high_Basic"
["suspended"]=>
int(0)
["theme"]=>
string(2) "x3"
["shell"]=>
string(29) "/usr/local/cpanel/bin/noshell"
["maxpop"]=>
string(9) "unlimited"
["maxlst"]=>
string(9) "unlimited"
["maxaddons"]=>
string(9) "*unknown*"
["suspendtime"]=>
NULL
["ip"]=>
string(14) "174.142.90.148"
["maxsub"]=>
string(9) "unlimited"
["domain"]=>
string(13) "dominio.com"
["maxsql"]=>
string(9) "unlimited"
["partition"]=>
string(4) "home"
["maxftp"]=>
string(9) "unlimited"
["user"]=>
string(6) "user"
["suspendreason"]=>
string(13) "not suspended"
["unix_startdate"]=>
string(10) "1288586771"
["diskused"]=>
string(2) "0M"
["maxparked"]=>
string(1) "2"
["email"]=>
string(22) "email"
["disklimit"]=>
string(5) "1000M"
["owner"]=>
string(4) "high"
}
}
}
Onu nasıl iç gidiyor?
Örnek: while(array) { echo "$domain<br>"; }
Şimdi hepinize teşekkür ederim ...
Çözülmüş, teşekkürler!
kod çözümü:
$JsonResponse = ConnGateWay();
$JsonResponseOk = json_decode($JsonResponse,true);
$arrayaacct = $JsonResponseOk['acct'];
foreach($arrayaacct as $item) {
echo $item['domain'];
echo "<br>";
}