note 111733 deleted from function.substr by aharvey

From: Date: Fri, 22 Mar 2013 16:01:48 +0000
Subject: note 111733 deleted from function.substr by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194177@lists.php.net to get a copy of this message
Note Submitter: ngocub at gmail dot com ---- If you set different encode in php.ini like UTF-8, the substr function will be not provide same result. This is the sample code for test it. $content = file_get_contents('http://a.webutation.net/3/1/news.google.com.vn.jpg'); $result = substr($content,0,3); print_r($result); So please notice your encode before put down all your hair by don't know why.

« previous php.notes (#194177) next »