This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = array('a1'=>'1','a2'=>2); | |
// changes all array keys to keys with prefix | |
$prefix = 'page_'; | |
$a = array_combine(explode(',', $prefix.implode(','.$prefix, array_keys($a))), array_values($a)); | |
print_r($a); | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$filename = 'header.php'; // File name | |
$search[] = 'mail('; $replace[] = 'mb_send_mail('; | |
$search[] = 'strlen('; $replace[] = 'mb_strlen('; | |
$search[] = 'strpos('; $replace[] = 'mb_strpos('; | |
$search[] = 'strrpos('; $replace[] = 'mb_strrpos('; | |
$search[] = 'substr('; $replace[] = 'mb_substr('; | |
$search[] = 'strtolower('; $replace[] = 'mb_strtolower('; | |
$search[] = 'strtoupper('; $replace[] = 'mb_strtoupper('; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* System messages and redirect proxy | |
* | |
* @package Cotonti | |
* @version 0.9.0 | |
* @author Cotonti Team | |
* @copyright Copyright (c) Cotonti Team 2008-2012 | |
* @license BSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
NewerOlder