<ul>
<li>A <a href="https://en.bitcoin.it/wiki/Address" rel="nofollow">Bitcoin</a> address always start with <code>1</code> or <code>3</code>. </li>
<li>A [Litecoin] address always starts with the letter <code>L</code>. </li>
<li>A <a href="http://en.wikipedia.org/wiki/Peercoin#Addresses" rel="nofollow">Peercoin</a> address starts with the letter <code>P</code>. </li>
</ul>

<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!</p>

CC BY-SA 3.0
2014-05-21T16:26:22.750Z
2014-05-21T16:26:22.750Z
Mathias711
<p>I need depending on the address to assign a value of the transaction. 
Both at the level of php distinguish btc ltc from ppc?</p>

CC BY-SA 3.0
2014-05-22T02:06:25.310Z
Can you explain a little more what you are trying to achieve?

All use different addressing guidelines and their address;s are usually easy to tell apart, aside from that if your writing php to interact with them then you will be using the RPC interface most likely which will need a separate instance for each currency.
hafnero
<bitcoind><litecoin><address><php><peercoin>
How to distinguish addresses currencies apart on php
user2850846
# How to distinguish addresses currencies apart on php

(Asked by: username_0 on 2014-05-21)

I need depending on the address to assign a value of the transaction.
Both at the level of php distinguish btc ltc from ppc?

**Tags:** bitcoind, litecoin, address, php, peercoin

> **Comments:**
> **username_1**: Can you explain a little more what you are trying to achieve?  All use different addressing guidelines and their address;s are usually easy to tell apart, aside from that if your writing php to interact with them then you will be using the RPC interface most likely which will need a separate instance for each currency.  

---

## 1 answers

### Answer by username_2 on 2014-05-21. Score: 1

* A [Bitcoin](https://en.bitcoin.it/wiki/Address) address always start with `1` or `3`.
* A [Litecoin] address always starts with the letter `L`.
* A [Peercoin](http://en.wikipedia.org/wiki/Peercoin#Addresses) 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!


---

