php concat
$a = "hello";
$b = "world";
$c = $a . " " . $b;
echo $c; // hello world
php concat
$a = "hello";
$b = "world";
$c = $a . " " . $b;
echo $c; // hello world
how to increment a number after concatinating it with a date function in php
function generateId($existingIds) {
$currentDate = date('Ymd');
$id = 1;
while (in_array($currentDate . sprintf('%02d', $id),$existingIds)) {
$id++;
}
return $currentDate . sprintf('%02d', $id);
}
how to increment a number after concatinating it with a date function in php
$idArray = [];
array_push($idArray,generateId($idArray));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us