web analytics

How to Save PHP Array in Database in PHP?

How to Save PHP Array in Database in PHP

We will see how we can store PHP array in database. We will store the php array in database and we get it back, as PHP array.

When we create management systems or applications such as CMS, we need to store a lot of configurations per user, per module etc. Multidimensional array is the best ever thing to work with in such situations. Configurations can be of two different types; searchable and non-searchable.

Read more

How to read comment blocks into PHP array?

how to read commented lines into array in php

Did you ever notice the commented lines over theme files, widget and plugin files in PHP in different CMS like WordPress etc.? These comment blocks are not there just because the developer wanted to. These lines can be there as the system may require those lines to describe the file in terms such as the name of the theme or plugin, create date, author name, update date, version number etc. These information about the file then can later be used in the system or CMS.  

Read more