We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c2cd6e commit 4f8b42bCopy full SHA for 4f8b42b
README.md
@@ -12,14 +12,22 @@ This yocLibrary enables your project to encode and decode Netstring values in PH
12
13
## Use
14
15
-### Serialization
+### Encoding
16
17
```php
18
-//TODO
+use YOCLIB\Netstring\Netstring;
19
+
20
+$string = 'abc';
21
22
+$netstring = Netstring::encode($string);
23
```
24
-### Deserialization
25
+### Decoding
26
27
28
29
30
+$netstring = '3:abc,';
31
32
+$string = Netstring::decode($netstring);
33
0 commit comments