Funkcje nie pod zmiennymi w PHP

0

Krótkie pytanie, otóż czy takie coś:

preg_match($patt, $page, $arr);
preg_match($patt_guild, $page, $arrGuild);
preg_match($patt_house, $page, $arrHouse);

jest poprawne? Czy zaleca się "chowania" funkcji pod zmienne:

$preg = preg_match($patt, $page, $arr);
$preg = preg_match($patt_guild, $page, $arrGuild);
$preg = preg_match($patt_house, $page, $arrHouse);
0

preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or FALSE if an error occurred.

Zależy, czasem lepiej pod zmienną przypisać niż np.zasyfić if'a ciągiem takich wywołań funkcji.

1 użytkowników online, w tym zalogowanych: 0, gości: 1