Is there a way to use post/pre-increment (++i / i++) in PHP without using loops? -


for example

for($i=0; $i<100; $i++){     array_push($something, $i); } 

is there command without using loop?

edit: php example

no need loops increment/decrement in php, more details here: http://php.net/manual/en/language.operators.increment.php


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -