pub fn from_str<'de, T: Deserialize<'de>>(input: &'de str) -> Result<T, Error>Expand description
Deserializes a value of PHP’s serialization format from a string.
This is from_slice for input that is held in a string.
let value: Vec<u32> = deser_php::from_str("a:2:{i:0;i:1;i:1;i:2;}").unwrap();
assert_eq!(value, [1, 2]);