br2nl
$newlineTags = array(
'<br>',
'<br/>',
'<br />',
);
$str = str_ireplace($newlineTags, PHP_EOL, $str);$newlineTags = array(
'<br>',
'<br/>',
'<br />',
);
$html = str_replace($newlineTags, PHP_EOL, $html);$html = 'this <br>is<br/>some<br />text <br />!';
$nl = preg_replace('#<br\s*/?>#i', "\n", $html);
echo $nl;
Also in PHP:
- find data type in php
- 30 numbers random string in php
- composer create-project laravel/laravel 8
- enc php code base64
- actual link php
- associative array in one key in value must unique in array check in php
- codeigniter get last insert id model
- $errors show this error in laravel
- Woocommerce password strength change
- date with time in php
- 2 decimal round using php
- doument root phpp
- convert day to timestamp php
- br2nl
- count character php
- datetime get month php
- array key exi
- a lot of names strtoupper
- add 1 month to date php
- debugbar:clear in laravel
- count charctor in php
- !is_null in laravel
- execute query and use die in php
- fetch data from live website curl php