Refresh User Data in Joomla
I was busy with a custom component in Joomla, and it stored it’s own user_details based off of the main users table, but if the details were …
Read Article →52 articles about php development, tools, and best practices
I was busy with a custom component in Joomla, and it stored it’s own user_details based off of the main users table, but if the details were …
Read Article →Sometimes you need to extract multiple email addresses from a string and the following function will make all your dreams come true.
function …
Read Article →
Ever wanted to have a dropdown that automatically showed the current year and the few years before it?
This is a quick and easy way to do exactly …
Read Article →Recently I had to create a code/username maker to fit into a certain type of pattern so that all “broker codes” (as they were called) …
Read Article →You heard it right! split() is officially a deprecated function. That means that you can still use it if you are really brave and it will work …
Read Article →It’s really very simple to convert times in different timezones using the following function.
function dateTimeConversion($datetime, …
Read Article →
With the following function you can easily convert an integer containing seconds to a nice days, hours, minutes, seconds string or array.
function …
Read Article →
If you would like to get the amount of hours between 10:00 and 12:00 then use this!
function timeDiff($firstTime,$lastTime) { …
Read Article →
It’s very simple to get the difference in hours using PHP
function timeDiff($firstTime,$lastTime) {
$firstTime=strtotime($firstTime); …
Read Article →
A common error which occurs with foreach loops is the standard “Invalid argument supplied for foreach()” whch gets thrown up as a warning. …
Read Article →I usually store data from a textarea directly to the database as is, then once I retrieve it back into HTML I use that lovely PHP function nl2br() to …
Read Article →If you are having problems with a string that keeps adding a line break when output from PHP to HTML then the following code will work wonders for …
Read Article →