[−][src]Function php_literal_parser::parse
pub fn parse(source: &str) -> Result<Value, SpannedError<'_, ParseError>>
Parse a php literal
Example
use php_literal_parser::{parse, Value, Key}; let map = parse(r#"["foo" => true, "nested" => ['foo' => false]]"#)?; assert_eq!(map["foo"], true); assert_eq!(map["nested"]["foo"], false);