How to combine two strings together in PHP 8.
When we develop any application using PHP language, for deferent reason we need combine two string.
PHP 8 is recently release, this combine is also work at PHP 8.
Syntex:
<?php
$fullName = "Jahidul Hasan Zahid"; //string
$age = 25; //integer
$address = "He is a software engineer. He complete his BSc in Software engineering at Daffodil International University"; //text
$concatenation = $fullName . "( . $age . )" . $address;
echo $concatenation;
...
Read Morerand() is a inbuilt-function in PHP. It's use for generate a random number.
Syntax: rand() or rand(10,99)
The rand() function is use to generate a random integer. rand(min.max) - min specifies the lowest value return and max specifies the height value return.
Read More