Jump to content

Sub array number


Asheeown

Recommended Posts

Sounds like you're referring to the array's key.

$a = array();
$a['array_key_name'] = 'array_key_value';
$b  = key($a); //
echo $b; // echos array_key_name

You should read this http://au2.php.net/key

and this http://au2.php.net/manual/en/function.array-keys.php

..and probably this too http://au2.php.net/foreach

Link to comment
https://forums.phpfreaks.com/topic/36955-sub-array-number/#findComment-176354
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.