Jump to content

Assoc Array name printing


ChaosXero

Recommended Posts

I have an array I'm using for errors and I'd like it to output the name of the array section i.e.

array error() =
    username = 1

I want to output

Bad 'Username!' (told to do so because username = 1)

I just need to know what to do to output the 'name' of an item in an array.  Hope this makes sense.
Link to comment
https://forums.phpfreaks.com/topic/17444-assoc-array-name-printing/
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.