php print the first element of an array

When I was doing my work today,I should use php to print the first element of an array.As we all know,use php to print the first element of an indexed array is very easy for us.But if the array is an associative array what can we do then? I used a PHP function array_slice() solve.

Leave a Reply

Your email address will not be published. Required fields are marked *