PHP Regular Expressions – Remove Comments From SQL Text benjf.com.blog@benjf.com, 2015-12-14 This short block of PHP code takes a SQL script and removes the “dash-dash” and… Continue Reading
PHP Date Difference benjf.com.blog@benjf.com, 2013-06-04 Finding a quick PHP function for date difference was painful. Now that I found it,… Continue Reading
PHP Date Difference benjf.com.blog@benjf.com, 2013-06-04 Finding a quick PHP function for date difference was painful. Now that I found it,… Continue Reading
PHP Regular Expressions – Remove Comments From SQL Text benjf.com.blog@benjf.com, 2013-03-01 This short block of PHP code takes a SQL script and removes the “dash-dash” and… Continue Reading
Basic PHP Data Setup benjf.com.blog@benjf.com, 2012-12-14 Ideally, when setting up a data-driven PHP site, you should have your configuration and database… Continue Reading
HTML Checkboxes benjf.com.blog@benjf.com, 2011-05-16 Occasionally, you discover something that you have been doing wrong for a long time. Sometimes… Continue Reading
PHP and jQuery – Reduce Long String to Preview Length and Reveal Full Text OnClick benjf.com.blog@benjf.com, 2011-05-142023-06-15 Goal: Reduce long string to specified length for end-user preview. Reveal entire string when clicked. … Continue Reading
PHP Ternary Operator – The "IF-Else" Shortcut benjf.com.blog@benjf.com, 2010-06-22 A ternary operator is a quick shortcut to bypass the multi-line if-else statement. It is… Continue Reading
PHP explode and trim the results? benjf.com.blog@benjf.com, 2010-06-22 php.net – where I posted this Overview This is something that I used to use… Continue Reading
PHP Object Passing benjf.com.blog@benjf.com, 2010-04-16 Using objects in PHP doesn’t have to be a one-way-street. PHP objects are very similar… Continue Reading