deleting values in an array
Posted: Tue Jul 01, 2003 11:48 am
i have a session array which i declare like this
i then later add numbers to the session variable making it an array like this:
i need to do two things:
1. how can i go through the array and delete the last 20 entries in the array?
2. how can i go through the array and delete the first 20 entries in the array?
Code: Select all
<?php
session_register("stuid_list");
?>Code: Select all
<?php
$stuid_list[] = "$sib_stuid";
?>1. how can i go through the array and delete the last 20 entries in the array?
2. how can i go through the array and delete the first 20 entries in the array?