File: php80.expect.txt

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
file content (13 lines) | stat: -rw-r--r-- 873 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
<span class="hljs-meta">&lt;?php</span>

<span class="hljs-keyword">match</span> (<span class="hljs-variable">$key</span>) {
    <span class="hljs-number">1</span> =&gt; <span class="hljs-string">&#x27;Integer 1&#x27;</span>,
    <span class="hljs-string">&#x27;1&#x27;</span> =&gt; <span class="hljs-string">&#x27;String 1&#x27;</span>,
    <span class="hljs-literal">true</span> =&gt; <span class="hljs-string">&#x27;Bool true&#x27;</span>,
    [] =&gt; <span class="hljs-string">&#x27;Empty array&#x27;</span>,
    [<span class="hljs-number">1</span>] =&gt; <span class="hljs-string">&#x27;Array [1]&#x27;</span>,
};

<span class="hljs-class"><span class="hljs-keyword">enum</span> <span class="hljs-title">Foo</span>: <span class="hljs-title">string</span> </span>{
    <span class="hljs-keyword">case</span> Test = <span class="hljs-string">&#x27;test&#x27;</span>;
}