The output look like:
<div> kicks brand kicks brand kicks brand kicks brand </div> <div> kicks brand kicks brand kicks brand kicks brand </div> <div> kicks brand kicks brand kicks brand kicks brand </div>
$count = 1; foreach( $array_var as $var ) { if ($count%4 == 1) { echo "<div>"; } // Code if ($count%4 == 0) { echo "</div>"; } $count++; } if ($count%4 != 1) echo "</div>"; //This is to ensure there is no open div if the number of elements in user_kicks is not a multiple of 4
Other than caching every hour, or every week, you may cache according to file data.…
To get host url of current server simply replace application\config\config.php [crayon-679fd504b5d94923791818/] with [crayon-679fd504b5d96768792808/]
You should first test the existence of a file by file_exists(). [crayon-679fd504b5e3a892112554/] or simple solution…
[crayon-679fd504b5ee5977069183/] Output the random string with the call below: [crayon-679fd504b5ee7871985178/]
Note: from WordPress Use it like this: [crayon-679fd504b5f75368504904/] Code: [crayon-679fd504b5f78800026514/]