Function utf8_encode undefined
<p>I have Ubuntu 16.04 installed, which comes with PHP 7 by default; but I ended up installing PHP 5.6 as well, and I have apache using 5.6.</p>

<p>When I went to run a project of mine, it told me the following:</p>

<blockquote>
  <p>PHP Fatal error:  Call to undefined function utf8_encode()</p>
</blockquote>

<p>I read through a bunch of posts where others have had this issue, and tried installing different extensions; but nothing has helped.</p>

<p>My understanding, was that that function would be packed with PHP (4,5,7) by default. </p>

<p>Any ideas?</p>

<p><strong>* Update *</strong></p>

<p>I did try the following, and it came back false.</p>

<pre><code>var_dump(is_callable('utf8_encode'));
</code></pre>

<p>Here are the installed mods/extensions:</p>

<p>[PHP Modules]
calendar
Core
ctype
date
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zlib</p>

<p>[Zend Modules]
Zend OPcache</p>