I'm slowly trying to teach myself PHP and am currently looking at functions. I've very little programming experience but as a once BBC Basic user I'm used to putting funcions and procedures out of the way at the end of the code. PHP allows this but the examples in the book place them at the start of the code; during a very brief flirtation with C++ I learnt that its functions needed to be at the start of the code as calling a function before it had been defined caused an error.
Since I'm starting out afresh, as it were, would it be considered good practive in PHP (and general programming) terms to put my functions at the start of the code therefore defining them before they're called?