TechieTushersuvro

TechieTushersuvro

Share

28/06/2022

2. Scalar and return type declaration
It basically enforces type on function parameter or return type value of a function. So, if proper type is not used in those cases than fatal error will show up. Ex.

class MyCalculator {
public function addTwoInts(int $x, int $y): int {
return $x + $y;
}
}

$calObj = new MyCalculator();
echo $calObj->addTwoInts(5,10);

In above, both for function parameter and return type value of function, “int” type is used as scalar and return type declaration respectively.

28/06/2022

1. Better performance

PHP 7 brings a significant improvement over earlier versions which proves itself twice as fast with lot less memory consumption. It means a single server can handle twice of users with twice as fast web pages in one request. That means half number of servers can be used to serve same amount customers with same speed than the number of servers were used to before. So, it saves a lot of server utilization costs.

28/02/2019

In htaccess Force site redirect to non-www:
RewriteCond %{HTTP_HOST} ^www\.exmple\.com [NC]
RewriteRule ^(.*)$ https://exmple.com/$1 [L,R=301]

In htaccess Force site redirect to www:
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

Want your school to be the top-listed School/college in Dhaka?
Click here to claim your Sponsored Listing.

Telephone

Address


Dhaka