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 | |
class MongoNotifications { | |
public $reqs = array(); | |
/* Our callback function | |
* The prototype is define by the PHP Stream Notification system: http://php.net/stream_notification_callback | |
*/ | |
function update($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) { | |
switch($notification_code) { |
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 | |
function filter_number($number) { | |
if (substr($number, 0, 2) == "00") { | |
$number = "+". (string)(float)$number; | |
} | |
$l = strlen($number); | |
$retval = array(0 => ""); | |
$idx = 0; | |
for($n=0; $n<$l; $n++) { | |
switch($number[$n]) { |
NewerOlder