How to use line breaks for loop

Source: Internet
Author: User
How to use line breaks for loop? How to use line breaks for loop? For example: first, we will send you a picture of the eyebrows that have not been painted or the eyebrows that have not been modified, which makes the whole person look uninspired. The short eyebrows are not commensurate with the eye makeup, it can be seen that eyebrow makeup is really important to the entire makeup. I would like to introduce you to the tools you need to use: a slightly stiff eyebrow pencil, an eyebrow knife, a scatter brush, and a flat brush. I will use a eyebrow knife to clean the hairs on both sides of the main line, make the main line of the eyebrows clearer. Next, use the eyebrow pencil to determine the eyebrow shape. how can we use the line feed for loop?
How to use line breaks for loop?
For example:
First, I would like to send you a picture of my eyebrows that have not been painted, and my eyebrows that have not been modified, so that the whole person may not look very spirited. The short eyebrows are not commensurate with the makeup, it can be seen that eyebrow makeup is really important to the entire makeup.
We will introduce you to the tools that you need to use: a slightly stiff eyebrow pencil, a razor, a split brush, and a flat brush.
Use a eyebrow knife to clear the hairs on both sides of the main line of the eyebrows, so that the main line of the eyebrows is clearer.
Next, use the eyebrow pencil to determine the eyebrow shape, use the eyebrow pencil similar to the hair color, and draft the eyebrow shape.
After the eyebrow is painted, use the eyebrow pencil to fill the box and smear it along the direction of the eyebrows to color the eyebrows.



How to add a sequence number before each sentence (line break) with a loop?

Share: More


------ Solution --------------------
$ S = <TXT
First, I would like to send you a picture of my eyebrows that have not been painted, and my eyebrows that have not been modified, so that the whole person may not look very spirited. The short eyebrows are not commensurate with the makeup, it can be seen that eyebrow makeup is really important to the entire makeup.
We will introduce you to the tools that you need to use: a slightly stiff eyebrow pencil, a razor, a split brush, and a flat brush.
Use a eyebrow knife to clear the hairs on both sides of the main line of the eyebrows, so that the main line of the eyebrows is clearer.
Next, use the eyebrow pencil to determine the eyebrow shape, use the eyebrow pencil similar to the hair color, and draft the eyebrow shape.
After the eyebrow is painted, use the eyebrow pencil to fill the box and smear it along the direction of the eyebrows to color the eyebrows.
TXT;
Foreach (preg_split ("/[\ r \ n] +/", $ s) as $ I => $ v ){
Echo ($ I + 1). $ v .'
';
}
1. first, I would like to send you a picture of my eyebrows that have not been painted, and my eyebrows that have not been modified, which makes the whole person look uninspired. my short eyebrows are not commensurate with my eye makeup, it can be seen that eyebrow makeup is really important to the entire makeup.
2. we will introduce you to the tools you need to use: a slightly stiff eyebrow pencil, a razor, a split brush, and a flat brush.
3. Use a eyebrow knife to clear the hairs on both sides of the main line of the eyebrows, so that the main line of the eyebrows is clearer.
4. use the eyebrow pencil to determine the eyebrow shape, and use the eyebrow pencil similar to the hair color to draft the eyebrow shape.
5. after The eyebrows are painted, fill the box with an eyebrow pencil, and apply them along the way of the eyebrows to color the eyebrows.

------ Solution --------------------
$ Str = <
 First, I would like to send you a picture of my eyebrows that have not been painted, and my eyebrows that have not been modified, so that the whole person may not look very spirited. The short eyebrows are not commensurate with the makeup, it can be seen that eyebrow makeup is really important to the entire makeup.
We will introduce you to the tools that you need to use: a slightly stiff eyebrow pencil, a razor, a split brush, and a flat brush.
Use a eyebrow knife to clear the hairs on both sides of the main line of the eyebrows, so that the main line of the eyebrows is clearer.
Next, use the eyebrow pencil to determine the eyebrow shape, use the eyebrow pencil similar to the hair color, and draft the eyebrow shape.
After the eyebrow is painted, use the eyebrow pencil to fill the box and smear it along the direction of the eyebrows to color the eyebrows.
Txt;
$ I = 0;
Echo preg_replace ('/. +/em', '+ + $ I. "$0"', $ str );


If only the serial number is displayed, use ul and ol.

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.