This file contains 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 | |
$phoneNumbers = [ | |
'phone1', | |
'phone2', | |
]; | |
$params = [ | |
'user' => 'user', | |
'password' => 'password', |
This file contains 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 | |
$responses = [ | |
'{"ErrorCode":"000","ErrorMessage":"Success","JobId":"177e08a8-71d7-40df-9324-1cd957d82964","MessageData":[{"Number":"918237020012","MessageParts":[{"MsgId":"918237020012-8da7cf9f85464458a853c049850a41c8","PartId":1,"Text":"testing completed"}]}]}', | |
'{"ErrorCode":"000","ErrorMessage":"Success","JobId":"177e08a8-71d7-40df-9324-1cd957d82964","MessageData":[{"Number":"918237020012","MessageParts":[{"MsgId":"918237020012-8da7cf9f85464458a853c049850a41c8","PartId":1,"Text":"testing completed"}]}]}', | |
'{"ErrorCode":"000","ErrorMessage":"Success","JobId":"177e08a8-71d7-40df-9324-1cd957d82964","MessageData":[{"Number":"918237020012","MessageParts":[{"MsgId":"918237020012-8da7cf9f85464458a853c049850a41c8","PartId":1,"Text":"testing completed"}]}]}', | |
'{"ErrorCode":"000","ErrorMessage":"Success","JobId":"177e08a8-71d7-40df-9324-1cd957d82964","MessageData":[{"Number":"918237020012","MessageParts":[{"MsgId":"918237020012-8da7cf9f85464458a853c049850a41c8","PartId":1,"Text":"testing com |
This file contains 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 | |
define("FLAG_A", 0x1); | |
define("FLAG_B", 0x2); | |
define("FLAG_C", 0x4); | |
function test_flags($flags) { | |
if ($flags & FLAG_A) echo "A"; | |
if ($flags & FLAG_B) echo "B"; | |
if ($flags & FLAG_C) echo "C"; | |
} | |
test_flags(FLAG_B | FLAG_C); # Output BC |