Q:

Write a PHP script to create a two-dimensional array (4x4), initialized to 10

0

Write a PHP script to create a two-dimensional array (4x4), initialized to 10

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Sample Output:

Array                                                       
(                                                           
    [0] => Array                                            
        (                                                   
            [0] => 10                                       
            [1] => 10                                       
            [2] => 10                                       
            [3] => 10                                       
        )                                                   
                                                            
    [1] => Array                                            
        (                                                   
            [0] => 10                                       
            [1] => 10                                       
            [2] => 10                                       
            [3] => 10                                       
        )                                                   
                                                            
    [2] => Array                                            
        (                                                   
            [0] => 10                                       
            [1] => 10                                       
            [2] => 10                                       
            [3] => 10                                       
        )                                                   
                                                            
    [3] => Array                                            
        (                                                   
            [0] => 10                                       
            [1] => 10                                       
            [2] => 10                                       
            [3] => 10                                       
        )                                                   
                                                            
)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now