php add item to array
<?php
$z = ['me','you', 'he'];
array_push($z, 'she', 'it');
print_r($z);
?>
php add item to array
<?php
$z = ['me','you', 'he'];
array_push($z, 'she', 'it');
print_r($z);
?>
php add to array
$cart = array();
$cart[] = 13;
$cart[] = 14;
// etc
//Above is correct. but below one is for further understanding
$cart = array();
for($i=0;$i<=5;$i++){
$cart[] = $i;
}
echo "<pre>";
print_r($cart);
echo "</pre>";
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us