Php Zoon

Php Zoon Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Php Zoon, Pet service, KOLKATA.

24/09/2016

What will be the output of the code below and why?

$x = 5;
echo $x;
echo "";
echo $x+++$x++;
echo "";
echo $x;
echo "";
echo $x---$x--;
echo "";
echo $x;

22/09/2016

What will be the output of the PHP code snippet below?

$v = 1;
$m = 2;
$l = 3;

if( $l > $m > $v){
echo "yes";
}else{
echo "no";
}

07/08/2016

Question: What type of inheritance supports by PHP?
There are following type of inheritance
Single Inheritance - Support by PHP
Multiple Inheritance - Not support
Hierarchical Inheritance - Support by PHP
Multilevel Inheritance - Support by PHP

01/03/2016

1. Validate array distinct

New rule to validate if array has only different values:

Validator::make(
['products' =>
['product_id' => 1, 'quantity' => 5],
['product_id' => 1, 'quantity' => 99],
['product_id' => 2, 'quantity' => 1],
],
['products.*.product_id' => 'distinct']
);
This validation will fail, cause there are multiple products with same product_id value.

2. fullUrlWithQuery()

If you ever need to form a URL with adding some GET parameters to the end, now you can take a current request and append an array to it. Here’s an example – let’s say your current URL is domain.com/catalog and you want new URL to be domain.com/catalog?category=1&order=price

$request->fullUrlWithQuery(['category' => '1', 'order' => 'price']);

3. Blade: continue and break

Good old loop conditions com directly to Blade: now if you have , you can stop the loop or continue it based on a certain condition:

($products as $product)
($product->category_id == 999)
{{ $product->name }}: {{ $product->price }}
($product->price >= 199)


As I mentioned, there are more tweaks and small features in new 5.2.22 for those who like to use the new versions or keen to update their projects as soon as the updates come up. Have fun playing!

24/02/2016

Operator overloading is a feature being proposed for PHP 7.1 that will allow using regular operators, like +, -, *, /, to perform operations with class objects using new magic methods. That was one of the main topics discussed by Manuel Lemos and Arturs Sosins in the episode 68 of the Lately in PHP podcast hangout.

They also talked about better handling of bugs caused by using invalid string values in arithmetic operations, supporting negative string offsets in all string operations, and better handling of issues caused by the regeneration of session IDs.

They also talked about the recent victory of Dave Smith and the United States team in the PHP Innovation Award, as well the improvements to the PHP Classes site features for promoting contributing authors work suggested by these winning authors.

Listen to the podcast, or watch the hangout video to learn more about these interesting PHP topics.

08/02/2015

PHP 5 Directory Functions

Function Description

chdir() Changes the current directory

chroot() Changes the root directory

closedir() Closes a directory handle

dir() Returns an instance of the Directory class

getcwd() Returns the current working directory

opendir() Opens a directory handle

readdir() Returns an entry from a directory handle

rewinddir() Resets a directory handle

scandir() Returns an array of files and directories of a
specified directory

30/01/2015

Hello! All of my friends I launched this page to get help about php coding

Address

Kolkata
700059

Telephone

09681104224

Website

Alerts

Be the first to know and let us send you an email when Php Zoon posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share

Category