Skip to content

PHP Tricks

PHP examples, tricks and tips. Loads of snippets of code. Branding tips and tools that will make your life so much easier. Everything for new and advanced developers

  • Home
  • WordPress
  • DevOps
  • Testing
  • Snippets
  • Resources
October 15, 2018

Setup Mocha Chai Unit Tests

January 12, 2018

Split SQL File

January 12, 2018

Remove Empty P Tags From WordPress

Blogs, Development Environment, PHP / January 12, 2018

Development Setup

Developer setups and environments change with the developer I guess?… But when you start a new job do you change your development process to suit […] Read More

Design, Javascript, PHP, Snippets, Tools / September 5, 2017

Widows Fix PHP or Javascript

Found this handy little article about how to fix widows onĀ David Walsh BlogĀ  Using these simple preg_replace functions to stop the pesky run away words. […] Read More

Bugs, Design, JQuery, Snippets, Tools, Wordpress / August 9, 2017

Infinite Scroll, Isotope Overlapping Safari Bug

In the pervious post on infinite scroll and isotope blog layouts there is a known issue where on safari where when scrolling down the images/elements […] Read More

CSS, Design, JQuery, PHP, Snippets, Wordpress / August 9, 2017

Infinite Scroll, Isotope And Masonry WordPress Blog

Infinite scrolling on blogs has become every popular recently, there are many plugins out there that can provide this functionality, but if you are building […] Read More

PHP, Snippets, Tools, Wordpress / August 6, 2017

Add a Submenu to the WordPress Admin Bar

What to add functionality to your wordpress admin bar? What to add a sub menu? Example The example below show the code that needs adding […] Read More

PHP, Snippets, Tools / August 3, 2017

How To Read A CSV With PHP

Looking how to read a CSV using PHP? What to import a CSV into our database? The code snippet below will help you do just […] Read More

Development Environment, PHP, Snippets, Tools / August 3, 2017

PHP Curl Post Windows IIS Server

Having problems trying to get your PHP curl post request working on a windows IIS server? Is the URL you are trying to post to […] Read More

PHP, Snippets, Tools, Wordpress / August 2, 2017

WordPress Add NOFOLLOW To All External Links

This code snippet will add nofollow to all external links on your site. Adding nofollow has advantages and disadvantages. Advantages Boost Domain Authority & PA […] Read More

PHP, Snippets, Tools / August 2, 2017

PHP Read A IMAP Email Inbox

Reading a IMAP email inbox with PHP can be so using this class example. There are 4 example function to connect to the inbox read […] Read More

PHP Ternary If
PHP, Snippets, Tools / July 27, 2017

PHP Ternary Operators

What is a ternary operator? PHP ternary operators are set out like the line of code below. This can make your code faster and easier […] Read More

Posts navigation

Older posts

Recent Posts

  • Setup Mocha Chai Unit Tests
  • Split SQL File
  • Remove Empty P Tags From WordPress
  • Development Setup
  • Widows Fix PHP or Javascript

Categories

  • Blogs
  • Bugs
  • CSS
  • Design
  • Development Environment
  • Featured
  • Javascript
  • JQuery
  • Magento
  • MySQL
  • PHP
  • Snippets
  • Testing
  • Tools
  • Wordpress
© 2021 PHP Tricks
Powered by WordPress / Theme by Design Lab