What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-30 07:59:02
remove every whitespace php
$string = preg_replace('/\s+/', '', $string); Add solution -
PHP 2021-09-29 12:31:03
where is phpinfo()
A simple method to style your own phpinfo() output. <style type="text/css"> #phpinfo {} #phpinfo pre {} #phpinfo a:link {} #phpinfo a:hover {} #phpinfo table {} #phpinfo .center {} #phpinfo .center table {} #phpinfo .center th {} #phpinf... Add solution -
PHP 2021-09-22 23:46:03
monday tuesday wednesday => monday - wednesday php
function weekendDaysToString($days, $lang = 'en') { $and = array('pt'=>'e', 'en'=>'and'); $strWeek = array( // config with more langs! 'pt'=>array("Segunda", "Terça", "Quarta", "Quinta... Add solution -
PHP 2021-09-22 09:17:02
php convert words with spaces to camelcase
public static function camelCase($str, array $noStrip = []) { // non-alpha and non-numeric characters become spaces $str = preg_replace('/[^a-z0-9' . implode("", $noStrip) . ']+/i', ' ', $str); $str = trim($str); ... Add solution -
PHP 2021-09-19 00:56:02
php remove prefix from string
$str = preg_replace('/^bla_/', '', $str); Add solution
Best helpers
Ranking is empty