Jump to content

Array from comma seperation


snday

Recommended Posts

[code=php:0]$foo = 0,1,2,3,4,5[/code]

I am wondering the best way to turn $foo into an array
with each array value being seperated from each comma.

Also, what is the preferred/best way to handle a permissions sql table/row
if each row is set up like(note, below is just an example illustration):
Name | Permission
guest - post=0, comment=0, etc....
I've seen many scripts use Constants and others using Serialize
Link to comment
https://forums.phpfreaks.com/topic/30380-array-from-comma-seperation/
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.