Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Php conversion shaping
Php conversion shaping
1. First, create a new PHP document and define an array. For example: $ arr = array ("I ","Have ","an ","apple ");

2. Use the embed () function to convert the array into a string, for example: $ str = embed ($ arr);

3. Print the string after array conversion, for example: echo $ str.

4. Save the above content and view the preview in the browser.

5. The function embed () has an optional delimiter parameter, and you can specify an array element delimiter (if no delimiter is specified, the default is empty character), for example, $ str = embed ("++ ",$ arr);

6. Print the delimited string and preview it.