↓ Skip to Main Content

Secondary Navigation

Dan Martin

Main Navigation

  • Home
  • Blog
  • Dan Martin Home
  • Welcome
  • About Me
  • Contact Me
  • The Animal House

Month: November 2014

PHP remove all occurrences of string except last with preg_replace

By Dan Martin Posted on November 18, 2014 Posted in Code Garage No Comments

While trying to manipulate a string in PHP, I ran into a road block trying to remove all instances of “.” and replace with a comma with the exception of the last instance of the period.

Read more ›

Categories

  • Code Garage (4)
  • General (1)
  • Home Office (1)
  • PhotoLab (4)
  • Recent Work (3)

Archives

  • March 2019
  • September 2017
  • May 2017
  • August 2016
  • November 2014
  • August 2014
  • January 2014
  • December 2013
  • July 2012

Categories

  • Code Garage
  • General
  • Home Office
  • PhotoLab
  • Recent Work
  • RSS - Posts
  • RSS - Comments
Copyright © 2025 Dan Martin | Powered by Responsive Theme