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
$dateTime = new DateTime( '@' . time() ); |
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
// SELECT実行 | |
$sth -> execute(); | |
// DATETIME型のカラム名配列を作成する | |
$datetimeColumnNameArray = array(); | |
for ($i = 0; $i < $sth -> columncount(); ++$i ) { | |
// カラムのメタ情報を取得 | |
$columnMeta = $sth -> getColumnMeta( $i ); | |
// DATETIME型の場合 |
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
public static function int2stringByArray( array $array ) { | |
$responseArray = array(); | |
foreach ( $array as $key => $value ) { | |
// 値が配列の場合 | |
if ( is_array( $value ) === TRUE ) { | |
$responseArray[$key] = self::int2stringByArray( $value ); | |
// 値がintの場合 | |
} else if ( is_int( $value ) === TRUE ) { |
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
<link rel="shortcut icon" href="faviconのURL"> |
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
SELECT * FROM information_schema.PROCESSLIST ORDER BY TIME; |
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
wget http://www.dbninja.com/download/dbninja.zip |
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
$array = array( | |
array( | |
'id' => 10, | |
'name' => 'hoge', | |
), | |
array( | |
'id' => 3, | |
'name' => 'fuga', | |
), |
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
/** | |
* hogeオブジェクト配列 | |
* @var array | |
*/ | |
private $hogeArray = array(); | |
public function getHogeArray() { | |
return $this -> hogeArray; | |
} |
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
echo "パスワード" | sudo -S /etc/rc.d/init.d/httpd restart |
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
Memcache |
NewerOlder