Page 1 of 1

Wie dekodieren Sie eine URL-kodierte Zeichenfolge?

Posted: 09 Mar 2025, 11:40
by Anonymous
Ich arbeite an einem PayPal -Abonnement -IPN. Die benutzerdefinierte Variable, die ich an PayPal sende, sieht folgendermaßen aus: < /p>
5 | 3 < /p>
Wenn PayPal es zurückschickt, ist es urlencodiert und sieht so aus: < /p>
5%7c3 < /p>
Wenn ich die Explodenfunktion verwenden möchte.

Code: Select all

$custom = $_POST['custom'];
if(isset($custom))
{
list($id_1, $id_2) = explode('|', $custom);
}
< /code>
Oder so? < /p>
$custom = $_POST['custom'];
if(isset($custom))
{
list($id_1, $id_2) = explode('%7C', $custom);
}
Wie kann ich das richtig machen?