<tfoot id='Zmf46'></tfoot>

    <i id='Zmf46'><tr id='Zmf46'><dt id='Zmf46'><q id='Zmf46'><span id='Zmf46'><b id='Zmf46'><form id='Zmf46'><ins id='Zmf46'></ins><ul id='Zmf46'></ul><sub id='Zmf46'></sub></form><legend id='Zmf46'></legend><bdo id='Zmf46'><pre id='Zmf46'><center id='Zmf46'></center></pre></bdo></b><th id='Zmf46'></th></span></q></dt></tr></i><div id='Zmf46'><tfoot id='Zmf46'></tfoot><dl id='Zmf46'><fieldset id='Zmf46'></fieldset></dl></div>

        <bdo id='Zmf46'></bdo><ul id='Zmf46'></ul>
    1. <small id='Zmf46'></small><noframes id='Zmf46'>

    2. <legend id='Zmf46'><style id='Zmf46'><dir id='Zmf46'><q id='Zmf46'></q></dir></style></legend>

      这在 PHP 中是什么意思 ->或 =>

      What Does This Mean in PHP -gt; or =gt;(这在 PHP 中是什么意思 -或 =)

        <tbody id='IZR7g'></tbody>

      <small id='IZR7g'></small><noframes id='IZR7g'>

    3. <tfoot id='IZR7g'></tfoot>

      1. <i id='IZR7g'><tr id='IZR7g'><dt id='IZR7g'><q id='IZR7g'><span id='IZR7g'><b id='IZR7g'><form id='IZR7g'><ins id='IZR7g'></ins><ul id='IZR7g'></ul><sub id='IZR7g'></sub></form><legend id='IZR7g'></legend><bdo id='IZR7g'><pre id='IZR7g'><center id='IZR7g'></center></pre></bdo></b><th id='IZR7g'></th></span></q></dt></tr></i><div id='IZR7g'><tfoot id='IZR7g'></tfoot><dl id='IZR7g'><fieldset id='IZR7g'></fieldset></dl></div>

            <bdo id='IZR7g'></bdo><ul id='IZR7g'></ul>
              <legend id='IZR7g'><style id='IZR7g'><dir id='IZR7g'><q id='IZR7g'></q></dir></style></legend>
                本文介绍了这在 PHP 中是什么意思 ->或 =>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                可能的重复:
                我们使用对象运算符->"的地方在 php 中
                参考 - 这个符号在 PHP 中是什么意思? >

                我一直在 PHP 中看到这些,但我不知道它们的实际含义.-> 有什么作用,=> 有什么作用.我不是在谈论运营商.他们是别的东西,但似乎没有人知道...

                I see these in PHP all the time but I don't have a clue as to what they actually mean. What does -> do and what does => do. And I'm not talking about the operators. They're something else, but nobody seems to know...

                推荐答案

                双箭头运算符=>,用作数组的访问机制.这意味着它左侧的内容将具有数组上下文中右侧内容的相应值.这可用于将任何可接受类型的值设置为数组的相应索引.索引可以是关联的(基于字符串的)或数字.

                The double arrow operator, =>, is used as an access mechanism for arrays. This means that what is on the left side of it will have a corresponding value of what is on the right side of it in array context. This can be used to set values of any acceptable type into a corresponding index of an array. The index can be associative (string based) or numeric.

                $myArray = array(
                    0 => 'Big',
                    1 => 'Small',
                    2 => 'Up',
                    3 => 'Down'
                );
                

                对象运算符->,用于在对象范围内访问对象的方法和属性.意思是说运算符右边的是实例化为运算符左边变量的对象的成员.实例化是这里的关键术语.

                The object operator, ->, is used in object scope to access methods and properties of an object. It’s meaning is to say that what is on the right of the operator is a member of the object instantiated into the variable on the left side of the operator. Instantiated is the key term here.

                // Create a new instance of MyObject into $obj
                $obj = new MyObject();
                // Set a property in the $obj object called thisProperty
                $obj->thisProperty = 'Fred';
                // Call a method of the $obj object named getProperty
                $obj->getProperty();
                

                这篇关于这在 PHP 中是什么意思 ->或 =>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                  • <legend id='WgUSO'><style id='WgUSO'><dir id='WgUSO'><q id='WgUSO'></q></dir></style></legend>

                    <small id='WgUSO'></small><noframes id='WgUSO'>

                  • <i id='WgUSO'><tr id='WgUSO'><dt id='WgUSO'><q id='WgUSO'><span id='WgUSO'><b id='WgUSO'><form id='WgUSO'><ins id='WgUSO'></ins><ul id='WgUSO'></ul><sub id='WgUSO'></sub></form><legend id='WgUSO'></legend><bdo id='WgUSO'><pre id='WgUSO'><center id='WgUSO'></center></pre></bdo></b><th id='WgUSO'></th></span></q></dt></tr></i><div id='WgUSO'><tfoot id='WgUSO'></tfoot><dl id='WgUSO'><fieldset id='WgUSO'></fieldset></dl></div>
                      <tbody id='WgUSO'></tbody>

                      • <bdo id='WgUSO'></bdo><ul id='WgUSO'></ul>

                          <tfoot id='WgUSO'></tfoot>