mercredi 22 juin 2016

procedural statement php wich one is the best

actually i have 1 little question about procedural php here i give 2 example

example 1

if( $test['rank'] > 1 && $text = 'test' || $test['admin'] == 1 && $text = 'test'){

example 2

if( $text = 'test' && ( $test['rank'] > 1 || $test['admin'] == 1 ) ){

what i ask is even if both way seem to work is there any difference exept the writing of them ?

thanks

Aucun commentaire:

Enregistrer un commentaire