Latest Coding Snippets

Calculate the difference between two dates using PHP

crypto.man | 03-Nov-2017 | PHP, Date, Difference, Calculate

You can use this PHP code snippet to calculate the difference between two dates.

Get the full URL of current page using PHP

ignite.coder | 03-Nov-2017 | PHP, URL

You can use this PHP code snippet to get the full URL of current page.

Get the extension of file using PHP

coding-ninja | 03-Nov-2017 | PHP, File, Extension

By using this PHP code snippet you can get the extension of any file.

Detect AJAX request in PHP

paterson23 | 02-Nov-2017 | PHP, AJAX, Detect, Request

You can use this PHP code snippet to check if request is an AJAX request.

Create clean and SEO friendly URL slug using PHP

binary.artist | 02-Nov-2017 | PHP, URL, SEO, Clean, Slug

By using this PHP code snippet you can create clean and SEO friendly URL slug from post title.

PHP measure script execution time

ignite.coder | 02-Nov-2017 | PHP, Script, Execution, Time, Measure

You can use this PHP code snippet to measure the execution time of script.

PHP convert br tag to new line

crypto.man | 02-Nov-2017 | PHP, Convert, br2nl

By using this PHP code snippet you can convert br tag to new line character.

PHP POST JSON using cURL

coding-ninja | 02-Nov-2017 | PHP, cURL, POST, JSON, Data

You can use this PHP code snippet to POST JSON using cURL.

Split large CSV files in to multiple CSV files using PHP

wise_man | 02-Nov-2017 | PHP, File, Data, CSV, Split

By using this PHP code snippet you can split large CSV files in to multiple CSV files.

Append rows to CSV file using PHP

paterson23 | 01-Nov-2017 | PHP, Data, CSV, Append

You can use this PHP code snippet to append data/rows to CSV file.