Agence de Développement Informatique du Nord

Just another WordPress site

Main menu

Skip to primary content
Skip to secondary content
  • Home

Tag Archives: replace

PHP replace all special characters

Posted on June 19, 2013 by blogadmin
Reply

If you want to remove or replace all specials characters from a string, you can use the preg_replace() function.
It replace all characters that are not A-Z or a-z

$nom = preg_replace('#[^A-Za-z]+#i','', $nom);
Posted in PHP | Tagged replace | Leave a reply

Recent Posts

  • Magento change title, meta description & keywords
  • Magento – where is calculated available payment method ?
  • Magento – All payment methods
  • Magento – get client’s IP
  • Magento – test abandoned cart email

Archives

  • December 2019
  • December 2018
  • August 2018
  • July 2018
  • May 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • January 2017
  • December 2016
  • October 2016
  • July 2016
  • February 2016
  • January 2016
  • October 2015
  • September 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012

Categories

  • Apache
  • casperjs
  • Doctrine
  • FPDF
  • Git
  • Hacks
  • HTML
  • Javascript
  • Linux
  • Magento
  • MySQL
  • Pear
  • PHP
  • Prestashop
  • Propel
  • Smarty
  • Sonata
  • SSH
  • Symfony
  • Talend
  • Twig
  • Uncategorized

Tags

.htaccess adminhtml apache apache2 array attribute attribute_set block cacti ckWebServicePlugin configurable product Cookies core_config_data debian doctrine2 dropdown fpdf Frame git grid IE Login magento module MySQL order Override payment method PHP phpMyAdmin Prestashop print_r Propel rrdtool smarty Sonata sort ssh status Symfony Symfony2 template twig unzip validator

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Comments

  • plugin ckWebServicePlugin paramétres vide sujet | usa5 on ckWebServicePlugin empty params
Proudly powered by WordPress