PHP | rand() or mt_rand() function

PHP | rand() or mt_rand() function

rand() 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.  

 

How to get Guzzle Post Request Response?

You can use it for get body response

Read More
            

How to combine two strings together in PHP 8

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

Read More

Laravel 7 and password install common issue

Some developers make a simple mistake and get an error from Laravel 7 and password installation.

PROBLEM:
    - laravel/passport[v10.1.0, ..., 10.x-dev] require illuminate/auth ^8.2 -> found illuminate/auth[v8.2.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with an...

Read More