| |

VerySource

 Forgot password?
 Register
Search
View: 19|Reply: 6

Questions about the output of the content collected by file_get_contents

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-2-15 14:00:01
| Show all posts |Read mode
After collecting the content of a webpage with file_get_contents, what should I do to output only a part of it? ? Which function should I use?
Thank you!
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-4-15 12:30:01
| Show all posts
strstr
substr

Regular

Didn't understand your wishes too much
Reply

Use magic Report

0

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-4-15 14:45:01
| Show all posts
Regular
Reply

Use magic Report

0

Threads

25

Posts

14

Credits

Newbie

Rank: 1

Credits
14

 China

Post time: 2020-4-15 19:30:01
| Show all posts
Should a certain part be?

explode
Reply

Use magic Report

0

Threads

22

Posts

14

Credits

Newbie

Rank: 1

Credits
14

 China

Post time: 2020-4-21 20:30:01
| Show all posts
strpos ()
substr ()
or
Regular ...
If it is distributed in several places, using regularization may be more efficient ...
Reply

Use magic Report

0

Threads

15

Posts

12

Credits

Newbie

Rank: 1

Credits
12

 China

Post time: 2020-5-15 20:45:01
| Show all posts
It is an array, and analyze it yourself.
Reply

Use magic Report

0

Threads

11

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

Post time: 2020-5-17 09:15:01
| Show all posts
Regularity is better ... studying ...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list