Skip to content
EveryUseful

EveryUseful

A site for Every Useful in all fields, specially IT world

  • Home
  • Laravel
  • Web
  • PHP
  • Javascript
  • HTML/CSS
  • Security
  • Links
  • Games
Posted on September 19, 2018September 19, 2018 by bigBoss

How to explode new lines in PHP

If you want to explode a string (mostly a loaded text file content), you just use this code:

$rows = explode(PHP_EOL, $content);
CategoriesUncategorized

Post navigation

Previous PostPrevious Learn GIT tutorials
Next PostNext Useful Articles/Sites

Recent posts

  • How to connect Laravel to SQL Server locally September 8, 2023
  • Getting data from API works in Postman but not working in localhost June 9, 2023
  • How to check for all software updates in your windows system May 31, 2023
  • Facing a hard time installing Gulp? May 17, 2023
  • How to abort with custom message in Laravel May 15, 2023

Search

About This Site

Trying to collect every useful thing I see to share it with everyone.

About This Site

This may be a good place to introduce yourself and your site or include some credits.

Search

  • Yelp
  • Facebook
  • Twitter
  • Instagram
  • Email
Proudly powered by WordPress