Tag

string parsing

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Jun 17, 2024 · Backend Development

How to Unquote Strings in Python: eval, ast.literal_eval, and json.loads

This article explains three common methods—eval, ast.literal_eval, and json.loads—for converting quoted Python strings into executable code or data structures, outlining their advantages, disadvantages, and appropriate use cases.

Data SerializationEvalast.literal_eval
0 likes · 5 min read
How to Unquote Strings in Python: eval, ast.literal_eval, and json.loads
php中文网 Courses
php中文网 Courses
Apr 20, 2021 · Backend Development

Understanding PHP parse_str() Function and Its Usage

This article explains PHP's parse_str() function, detailing its syntax, parameters, and return behavior, and provides two practical examples—one with the optional result array and another using the deprecated single‑parameter form—illustrating how to convert query strings into variables.

PHPparse_strstring parsing
0 likes · 3 min read
Understanding PHP parse_str() Function and Its Usage
Laravel Tech Community
Laravel Tech Community
Aug 3, 2020 · Backend Development

PHP parse_str Function: Usage, Parameters, and Examples

This article explains PHP's parse_str() function, detailing its purpose of converting query strings into variables, describing its parameters and void return, and providing clear code examples demonstrating both basic usage and usage with an output array.

Query Stringbackendparse_str
0 likes · 2 min read
PHP parse_str Function: Usage, Parameters, and Examples