Performance-wise, which would be the better solution? Here\'s a really small example. The PHP script returns a number to jQuery, which needs to be checked if it\'s 1>
The correct answer is always - Test/Benchmark it. That way you know for sure which is better.
That said, if you are doing a basic comparison of PHP (A server-side language) to jQuery (A client-side language) the server-side one should be faster. However it will always depend on what logic you are trying to process.