The phpphp extension of the YAML.

Source: Internet
Author: User
Tags array to string php source code serialization

Hang out on the Internet. Suddenly found PHP has yaml this thing. Helpless cannot find the extension. Finally find a source code. Syck's. Oh...... Compiling is a hassle. What's more, I only have load and dump two functions. The values are string to array and array to string.

There is only vs2005 in hand. Next PHP source code. Build a project to start, find Google asked n answer. N>=20. After reading a daze began.

Everything was going well----took a lot of time apart from taking notes.

Final interest. The load and dump are renamed Decode and encode and Json_encode and Json_decode correspond.

Add Yaml_load and Yaml_save two functions for file serialization,

And then it all went well. Write-compile-through-run-crash-dumbfounded.

Good bugs from beginning to end. With a sudden in front of a bright inside with Virtual_fopen Murphy problem here. This function is nothing more than thread-safe + directory conversion. Time is pressing lazy thinking reason. directly into Expand_filepath and fopen. Compile. Pass.

Ha ha...... Look at the results of the operation. Feel a word. Cool and crooked. Oh, that's wrong. is three words.

haha% this extension. A friend in need can contact me.

Hang out on the Internet. Suddenly found PHP has yaml this thing. Helpless cannot find the extension. Finally find a source code. Syck's. Oh...... Compiling is a hassle. What's more, I only have load and dump two functions. The values are string to array and array to string.

There is only vs2005 in hand. Next PHP source code. Build a project to start, find Google asked n answer. N>=20. After reading a daze began.

Everything was going well----took a lot of time apart from taking notes.

Final interest. The load and dump are renamed Decode and encode and Json_encode and Json_decode correspond.

Add Yaml_load and Yaml_save two functions for file serialization,

And then it all went well. Write-compile-through-run-crash-dumbfounded.

Good bugs from beginning to end. With a sudden in front of a bright inside with Virtual_fopen Murphy problem here. This function is nothing more than thread-safe + directory conversion. Time is pressing lazy thinking reason. directly into Expand_filepath and fopen. Compile. Pass.

Ha ha...... Look at the results of the operation. Feel a word. Cool and crooked. Oh, that's wrong. is three words.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.