|
Posted by Ivαn Sαnchez Ortega on 11/18/20 11:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nikola Skoric wrote:
> Hi there, is something like this possible in PHP:
>
> function foo($a=1, $b=2, $c=3) {
> //...
> }
>
> foo($b=2);
>
> Will this assign $a and $c to default values?
No.
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Give a man a fish, he owes you one fish.
Teach a man to fish, you give up your monopoly on fisheries.
(read on slashdot.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEGeN73jcQ2mg3Pc8RAuzIAJ9405fAxCU7dMY8Gqi5gFiTepDoLwCfZNqh
hP+JeBrEfRAudgd90HTy+YI=
=CgWw
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|