S
S
semki0962016-05-10 17:48:03
PHP
semki096, 2016-05-10 17:48:03

Cycles - on the server or on the client?

When it makes sense to use cycles not on the server using the same PHP. And on the client, for example, using a js framework such as Angular?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2016-05-10
@semki096

Take the result of the cycle from the server, usually in an array. And on the client already sort it as you want. It is considered bad practice to sort and select without a limit on the server side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question