ᅠᅠ
Size: a a a
ᅠᅠ
MB
foreach($_CONFiG['users'] as $id => $user) {
echo $user->login.', '.$user->password.'<br>';
}ᅠᅠ
$_CONFiG['users'] = $data весь массив, прочитанный из файла. Но там будет уже не строка, а массивMB
ᅠᅠ
foreach($_CONFiG['users'] as $id => $user) {
echo $user->login.', '.$user->password.'<br>';
}MB
$user только в текущем цикле. Это объект, содержащий данные массива одного пользователяᅠᅠ
$user только в текущем цикле. Это объект, содержащий данные массива одного пользователяᅠᅠ
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
echo $data[0][0];MB
MB
foreach($json as $id => $user) {
echo $id.', '.$user[0].'<br>';
}MB
foreach($json as $id => $user) {
echo $id.', '.$user[0].'<br>';
}$user[0] - 0 логин, 1 - парольMB
ᅠᅠ
$user[0] - 0 логин, 1 - парольᅠᅠ
foreach($json as $id => $user) {
echo $id.', '.$user[0].'<br>';
}MB
ᅠᅠ
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
array_push($data, array('Login goes here', 'Password goes here', 'User goes here'));
echo $data[0][0];MB
MB
ᅠᅠ