You appear to be a bot. Output may be restricted
Description
The end of the first line is detected by a newline character (\n) NOT a carriage return (\r) NOT PHP_EOL;
Usage
oikai_first_line( $paragraph );
Parameters
- $paragraph
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-apitype.phpLines:
1 to 6 of 6
function oikai_first_line( $paragraph ) { //$ps = explode( PHP_EOL, $paragraph, 2 ); $ps = explode( "\n", $paragraph, 2 ) ; //echo count( $ps ); return( $ps[0] ); }View on GitHub