(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
<?php | |
/************************************************************************** | |
repairSerializedArray() | |
-------------------------------------------------------------------------- | |
Extract what remains from an unintentionally truncated serialized string | |
Example Usage: | |
// the native unserialize() function returns false on failure | |
$data = @unserialize($serialized); // @ silences the default PHP failure notice |
$numColumns = 3; | |
$itemsPerColumn = ceil(count($items)/$numColumns); | |
$keys = array_keys($items); | |
$result = array(); | |
for($i=0;$i<count($keys);$i++) { | |
$col = ($i % $numColumns); | |
$x = floor($i / $numColumns) + ($col * $itemsPerColumn); | |
$k = $keys[$x]; | |
$result[$k] = $items[$k]; |
format_date | |
== tokens == | |
G Era | |
y year | |
M mon | |
d mday | |
h Hour12 | |
H hours | |
m minutes |
if (sfConfig::get('sf_logging_enabled')) { | |
sfContext::getInstance()->getEventDispatcher()->notify(new sfEvent('category', 'application.log', array('message' => 'Message', 'priority' => sfLogger::DEBUG))); | |
} | |