$array = [
'10/22/300',
'10/21/300',
'9/5/5/6'
];
usort($array, function($a, $b) {
$a = array_sum(explode('/', $a));
$b = array_sum(explode('/', $b));
return ($a == $b ? 0 : ($a < $b ? -1 : 1));
});
print_r($array);
$a = '%23dd3333';
$b = urldecode($a);
echo $b;
//Create an instance; passing `true` enables exceptions
$mail = new PHPMailer(true);
.....
//Attachments
$mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name
file_put_contents($_SERVER['DOCUMENT_ROOT'].'/filename.txt', $_REQUEST['textbox']);