Search code examples
phpvb.netoperatorslogical-operatorsand-operator

What is the VB's "AndAlso" equivalent in PHP?


*Also, does the And operator already acts like an AndAlso, or both exists in a different way?


Solution

  • && is the short-circuiting logical "And" operator, so it is equivalent of AndAlso in VB. & is bitwise "And" and does not short-circuit, so it is equivalent to And in VB.