PHP Two-dimensional array

Source: Internet
Author: User
Two-dimensional array PHP

       $name [0]= Array ("1" = "1111", "2" = "2222", "3" = "3333"  );       if (Isset ($name [0]["1"])        {                echo "Wancheng Fuzhi";                echo $name [0][1]. $name [0]. $name [0];        }        else                echo "FFFFFFFFFFF";


Direct code operation results are fffffffffff like a two-dimensional array assignment. Ask for help


Reply to discussion (solution)

Front Plus
$name = Array ();

Front Plus
$name = Array (); Just a moment, thank you.

       $name [0]= Array ("1" = "1111", "2" = "2222", "3" = "3333");       if (Isset ($name [0][1]))        {                echo "Wancheng Fuzhi";                echo $name [0][2]. $name [0]. $name [0];        }        else                echo "FFFFFFFFFFF";

PHP version? At least my 5.3.2 is running normally.

The result of my operation is this:

Wancheng Fuzhi 1111ArrayArray

I am using a local PHP environment for testing, PHP version 5.4
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.