All Questions
Tagged with logic-programming php
2 questions
2
votes
1
answer
25k
views
How to use Try/catch and database transaction in PHP and laravel [closed]
I'm planing to use Try/Catch and Database Transaction in Laravel5 and my own PHP project to validate any errors occurs then rollback avoiding lost my transaction or information during user do their ...
5
votes
3
answers
1k
views
Is saying "if ( $a != null && $a == 5)" the same as "if ($a == 5)"
First off, sorry if this is answered somewhere else. I did a brief search, but wasn't sure how to ask in search terms.
I'm looking at some code and came across lot's of statements like this:
if ( ($...