How to distinguish addresses currencies apart on php
A Bitcoin address always start with 1 or 3. 
A [Litecoin] address always starts with the letter L. 
A Peercoin address starts with the letter P. 


Assuming you can figure out how to check the first character in php, you can distinguish between different addresses. Then you can program whatever value you want into the transaction. Good luck!