13f2e85718acc178e2689273aade5d9a5fb0b364
[awesomized/ext-ion] / docs / v0.2 / ion / Symbol / equals.html
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 Symbol::equals -
7 mdref
8 </title>
9 <meta property="og:title" content="ion\Symbol::equals">
10 <meta name="viewport" content="width=1200, initial-scale=0.5">
11 <base href="/ext-ion/v0.2/">
12 <meta http-equiv="Content-Location" content="/ext-ion/v0.2/ion/Symbol/equals">
13 <link rel="stylesheet" href="index.css">
14
15 <link rel="shortcut icon" href="/ext-ion/v0.2/favicon.ico">
16 </head>
17 <body>
18 <div class="page">
19
20 <div class="sidebar">
21
22 <div class="edit">
23 <a href="https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit</a>
24 </div>
25
26
27 <ul>
28 <li>&lsh; <a href="./">Home</a>
29
30 <ul>
31 <li>
32
33 &uarr; <a href="./ion">
34 ion
35 </a>
36 <ul>
37 <li>
38
39 &uarr; <a href="./ion/Symbol">
40 Symbol
41 </a>
42 <ul>
43 <li>
44
45 &circlearrowright; <strong><a href="./ion/Symbol/equals">Symbol::equals</a></strong>
46
47
48
49 </ul>
50
51 <li>&ldsh; <a href="./ion/Symbol/Enum">Enum</a></li>
52
53 <li>&ldsh; <a href="./ion/Symbol/ImportLocation">ImportLocation</a></li>
54
55 <li>&ldsh; <a href="./ion/Symbol/PHP">PHP</a></li>
56
57 <li>&ldsh; <a href="./ion/Symbol/System">System</a></li>
58
59 <li>&ldsh; <a href="./ion/Symbol/Table">Table</a></li>
60
61 <li>&ldsh; <a href="./ion/Symbol/__construct">Symbol::__construct</a></li>
62
63 <li>&ldsh; <a href="./ion/Symbol/toString">Symbol::toString</a></li>
64
65 </ul>
66
67 </li>
68 </ul>
69
70 </li>
71 </ul>
72 </div>
73 <meta charset="utf-8"><h1>
74 <a class="permalink" href="ion/Symbol/equals#">#</a><code><a href="https://php.net/manual/en/language.types.boolean">bool</a></code> <a href="ion/Symbol/equals">ion\Symbol::equals</a>(<a href="ion/Symbol">ion\Symbol</a> <span class="var">$symbol</span>)</h1><p>Compare two symbols for equality.</p><p>Two symbols are considered equal, if either:</p><ul>
75 <li>both are the same object or <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>
76 </li>
77 <li>both values are <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code> (unknown text), and both <span class="var">$importLocations</span> match</li>
78 <li>both values match, regardless of <span class="var">$sid</span> and <span class="var">$importLocation</span>
79 </li>
80 </ul><h2 id="Params:">Params:<a class="permalink" href="ion/Symbol/equals#Params:">#</a>
81 </h2><ul>
82 <li>
83 <a href="ion/Symbol">ion\Symbol</a> <span class="var" id="$symbol">$symbol<a class="permalink" href="ion/Symbol/equals#%24symbol">#</a></span>
84 </li>
85 </ul><h2 id="Returns:">Returns:<a class="permalink" href="ion/Symbol/equals#Returns:">#</a>
86 </h2><ul>
87 <li>
88 <code><a href="https://php.net/manual/en/language.types.boolean">bool</a></code>, whether the two Symbols equal</li>
89 </ul>
90 <div class="comments">
91 <style>.giscus-frame {min-height: 16em;}</style>
92 <script>
93 function giscus_load(button) {
94 let script = document.createElement("script");
95 script.setAttribute("data-repo", 'awesomized/ext-ion');
96 script.setAttribute("data-category", 'Comments on Docs');
97 script.setAttribute("data-repo-id", 'R_kgDOGfXEXw');
98 script.setAttribute("data-category-id", 'DIC_kwDOGfXEX84CBHuf');
99 script.setAttribute("data-mapping", 'og:title');
100 script.setAttribute("data-input-position", 'bottom');
101 script.setAttribute("data-reactions-enabled", false);
102 script.setAttribute("data-theme", 'light');
103 script.setAttribute("data-lang", 'en');
104
105 script.src = "//giscus.app/client.js";
106 button.parentNode.replaceChild(script, button);
107 }
108 </script>
109 <button class="activator" onclick="giscus_load(this)">Show Comments from Github Discussions</button>
110
111 </div>
112
113 <footer>
114
115 <ul>
116 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
117 </a></li>
118 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
119 <li>
120 </li>
121 </ul>
122
123 </footer>
124
125 <script src="index.js" defer></script>
126
127 </div>
128 </body>
129 </html>