Php

PHP Interview Questions and Answers – How to Declare Array in PHP



This is a tutorial series on PHP Interview Questions and Answers. How to declare array in php is the frequently ask question in interviews. We will learn what are arrays and how to use arrays and different methods of declaring array in php.

Support us on Patreon:

CRUD Application of various PHP’s MVC Framework

Laravel CRUD Tutorial

Codeigniter CRUD Tutorial

Cakephp CRUD…

Similar Posts

One thought on “PHP Interview Questions and Answers – How to Declare Array in PHP
  1. Hi Mister,
    I have a serious problem with a script.
    So i want to create an array from 2 input.
    For example <input type="number" name="begin"/> & <input type="number" name="end"/>
    So i want to create an array as follow :
    for($i=$begin; $i<=$end; $i++){
    echo $i[];
    }
    If i have begin = 10 & end = 15
    i want to get all numbers from 10 to 15 and to save it into database (i'm using laravel)
    Can you help me please

Leave a Reply

Your email address will not be published. Required fields are marked *