56d9e41a4992015616898f8b0e36999217b1e08d
[awesomized/ext-ion] / docs / v0.2 / ion / Serializer / serialize.html
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 Serializer::serialize -
7 mdref
8 </title>
9 <meta property="og:title" content="ion\Serializer::serialize">
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/Serializer/serialize">
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/Serializer">
40 Serializer
41 </a>
42 <ul>
43 <li>
44
45 &circlearrowright; <strong><a href="./ion/Serializer/serialize">Serializer::serialize</a></strong>
46
47
48
49 </ul>
50
51 <li>&ldsh; <a href="./ion/Serializer/Serializer">Serializer</a></li>
52
53 </ul>
54
55 </li>
56 </ul>
57
58 </li>
59 </ul>
60 </div>
61 <meta charset="utf-8"><h1>
62 <a class="permalink" href="ion/Serializer/serialize#">#</a><code><a href="https://php.net/manual/en/language.types.declarations#language.types.declarations.mixed">mixed</a></code> <a href="ion/Serializer/serialize">ion\Serializer::serialize</a>(<code><a href="https://php.net/manual/en/language.types.declarations#language.types.declarations.mixed">mixed</a></code> <span class="var">$data</span>, [<a href="ion/Writer">ion\Writer</a>|<code><a href="https://php.net/manual/en/language.types.array">array</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var">$writer</span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>])</h1><h2 id="Params:">Params:<a class="permalink" href="ion/Serializer/serialize#Params:">#</a>
63 </h2><ul>
64 <li>
65 <code><a href="https://php.net/manual/en/language.types.declarations#language.types.declarations.mixed">mixed</a></code> <span class="var" id="$data">$data<a class="permalink" href="ion/Serializer/serialize#%24data">#</a></span>
66 </li>
67 <li>Optional <a href="ion/Writer">ion\Writer</a>|<code><a href="https://php.net/manual/en/language.types.array">array</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var" id="$writer">$writer<a class="permalink" href="ion/Serializer/serialize#%24writer">#</a></span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>
68 </li>
69 </ul>
70 <div class="comments">
71 <style>.giscus-frame {min-height: 16em;}</style>
72 <script>
73 function giscus_load(button) {
74 let script = document.createElement("script");
75 script.setAttribute("data-repo", 'awesomized/ext-ion');
76 script.setAttribute("data-category", 'Comments on Docs');
77 script.setAttribute("data-repo-id", 'R_kgDOGfXEXw');
78 script.setAttribute("data-category-id", 'DIC_kwDOGfXEX84CBHuf');
79 script.setAttribute("data-mapping", 'og:title');
80 script.setAttribute("data-input-position", 'bottom');
81 script.setAttribute("data-reactions-enabled", false);
82 script.setAttribute("data-theme", 'light');
83 script.setAttribute("data-lang", 'en');
84
85 script.src = "//giscus.app/client.js";
86 button.parentNode.replaceChild(script, button);
87 }
88 </script>
89 <button class="activator" onclick="giscus_load(this)">Show Comments from Github Discussions</button>
90
91 </div>
92
93 <footer>
94
95 <ul>
96 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
97 </a></li>
98 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
99 <li>
100 </li>
101 </ul>
102
103 </footer>
104
105 <script src="index.js" defer></script>
106
107 </div>
108 </body>
109 </html>