remove whitespace from string php
$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
remove whitespace from string php
$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
PHP include causes white space at the top of the page
/*
When you save a page as UTF-8, a special signature called
a byte-order mark (or BOM) is included at the beginning of
the file, indicating that it is a UTF-8 file.
You can only see BOMs with low level text editors (such as DOS edit).
You need to remove this signature from the included file
in order to get rid of the white space at the top of the page.
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us