https://github.com/tx7do/serializedphpparser
https://github.com/tx7do/serializedphpparser
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tx7do/serializedphpparser
- Owner: tx7do
- Created: 2018-08-13T14:53:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T15:09:44.000Z (almost 8 years ago)
- Last Synced: 2025-01-02T05:32:17.546Z (over 1 year ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Php Serialized Parser
# HOW TO USE:
```cpp
auto str = "a:2:{s:4:\"tool\";s:15:\"php unserialize\";s:6:\"author\";s:13:\"1024tools.com\";}";
SerializedPhpParser parser(str);
auto arrItem = parser.parse();
auto strTool = arrItem["tool"].asCString();
auto strAuthor = arrItem["author"].asCString();
printf("tool:[%s] author:[%s]\n", strTool, strAuthor);
```