PHP

Dynamically Delete an Object’s Property in PHP

Posted By: eligeske on in PHP 0 Comment

TAGs:

Here is how to access an Object Property with a string so you don’t run into this: “Fatal error: Cannot use object of type … as array”. This example shows how to delete a property via a string.

 

Show PHP errors in the page

Posted By: eligeske on in PHP 1 Comment

TAGs:

The php function to show and hide errors can really help for fast debugging situations without having to use INI_SET or accessing our PHP.ini file.

 

PHP Dynamic Constants

Posted By: eligeske on in PHP 1 Comment

TAGs:

I got this off the php.net website, haven’t tried it yet. Uh ya, a Dynamic Constant, Jumbo Shrimp?

 

PHP Get Prior Date or Yesterday

Posted By: eligeske on in PHP 2 Comment

TAGs:

PHP Quickie! Ever wonder how to get the date of one day or maybe even 2 days prior to a selected date? Pretty easy with mktime().

 

PHP Current Week Number

Posted By: eligeske on in PHP 1 Comment

TAGs:

PHP Quickie! I needed a function to get the current week. Not sure if it is 100% solid, so use on your own accord.

 

Popular post