Skip to main content
#! code

Main navigation

  • Articles
  • Snippets
  • Tools
  • About
  • Contact

User account menu

  • Log in

Breadcrumb

  1. Home
  2. Snippets

Snippets

Recursively Scan A Directory For Files With Regex Using PHP

17th February 2026
  • PHP
  • PHP OOP

Reformat A CSV File In PHP

25th June 2025
  • PHP
  • csv

Rename PHP Trait Methods On The Fly

31st May 2025
  • PHP
  • PHP OOP

PHP Null Coalescing Operators

10th May 2025
  • PHP

Remove Control Characters From A String In PHP

7th May 2025
  • PHP
  • preg_replace
  • Regular Expressions

Shuffle Function For The Brennan Helix CD Player In PHP

10th August 2024
  • PHP
  • curl
  • API
  • cache

Git Auto Tagging With PHP Deployer

12th July 2024
  • PHP
  • Deployer

Draw An Angled Line In PHP

9th May 2024
  • PHP
  • gd
  • image

Reverse parse_url() PHP Function

7th May 2024
  • PHP

Detect Easter Holidays In PHP

15th April 2024
  • PHP

Printing Debug Output In PHPUnit

7th April 2024
  • PHP
  • phpunit

Creating A Recursive Closure In PHP

9th December 2023
  • PHP

Detect If Keys Are Present In Array In PHP

18th July 2023
  • PHP
  • array

PHP Function To Strip Emojis From A String

1st July 2023
  • PHP

Simple PHP Script To Detect The Current Platform

13th March 2023
  • PHP

Find The Difference Between Two Arrays Of Objects In PHP

27th February 2023
  • PHP
  • PHP OOP

Mapping Nested Object Values Into A Single Array In PHP

27th February 2023
  • PHP
  • PHP OOP
  • array

PHP Function To Calculate The Mean Value Of An Array Of Numbers

4th February 2023
  • PHP

Use PHP Curl To Get Header Data From A Web Page

19th January 2023
  • PHP
  • curl
Subscribe to Snippets

Footer Social

  • Mastodon
  • Github
  • Drupal
  • Discord
  • Patreon

Footer

  • About
  • Authors
  • Projects
  • Support Us
  • Articles
  • Snippets
  • Videos
  • Terms And Licence
  • Contributions Guide
  • Privacy Policy
  • Colophon
  • RSS Feeds

© 2026 #! code
Hash Bang Code Ltd.
Company Registration No 13867421