Skip to content

Some tiny script to limit and remove the last line from input string using PHP.

License

Notifications You must be signed in to change notification settings

BaseMax/LimitLastLinePHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Limit Last Line PHP

A tiny script to limit and remove the last line from input string using PHP.

Sample

Input

1
2
3
4
5
6

Output (Remove one line from end of the string)

1
2
3
4
5

Output (Remove two line from end of the string)

1
2
3
4

Benchmark

Will complete as soon...