Skip to content
Some tiny script to limit and remove the last line from input string using PHP.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
test1.php
test2.php

README.md

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...

You can’t perform that action at this time.