To install php pecl's bbcode extension I know I need to use:
sudo apt-get install php-pear pecl install bbcode
But... I'm on Ubuntu LTS 16.04 which installed php7.0 by default. I've installed 5.6 to run along side as this is version I need for now.
However whenever I install something with pecl it automatically installs it to 7.0. How can I force pecl to install to version 5.6? Or is there a manual method of copying the relevant files to 5.6 from 7.0?