PHP General Questions & Answers

Reblogged from Web Development:

Question1: What are the differences between require and include, include_once?
Answer:
File will not be included more than once. If we want to include a file once only and further calling of the file will be ignored then we have to use the PHP function include_once(). This will prevent problems with function redefinitions, variable value reassignments, etc.

The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.

Read more… 178 more words

Arrays of arrays in PHP

Reblogged from C 2 Java 2 Php:

I love how quick and easy it is in PHP to declare complex data structures of associative arrays within arrays within arrays.

Consider the array below that starts with string prompt:

 
 32   var $arrFilters = array(
 33     '0' => array(                
 34       'strPrompt' => 'Preset Reports...',
 35     ),
 36     '1' => array(
 37       'strPrompt' => 'Email Opens',
 38       'FILTER_1' => array(
 39         'strValue'  => 'email',
 40         'strFind'   => 'exact',
 41         'strColumn' => FILTER_COLUMN_HOW,
 42       ),
 43     ),
 44   );

Read more… 87 more words

Choosing an IDE

Reblogged from PHP Vidyalaya:

Click to visit the original post

What is an IDE?

  • IDE means Integrated Development Environment.
  • It provides certain facilities which helps a programmer for software development.
  • They are designed in a  such a way so that it can maximise the developer productivity.
  • There are many IDE's which support multiple programming languages.

There are lots of IDE's are available today. Even though some of them are not free, there are lot of IDE's which are free.

Read more… 207 more words