note 15435 added to function.strlen

From: Date: Mon, 10 Sep 2001 16:37:22 +0000
Subject: note 15435 added to function.strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-17881@lists.php.net to get a copy of this message
This un-mungs hotmail URL's using the strlen tag, so I thought it was a good example to put here: $link=urldecode("$badHotMailLink"); $strTossOutPos=(strpos ($link, "action=http")+7); $NewLink=substr ($link, $strTossOutPos , (strlen($link))-$strTossOutPos); echo "<a href=\"$NewLink\" target=\"linktargetwindow\">".$NewLink."</a><br>"; Just 'copy shortcut' (in ie) and paste it into that code, and viola! Build a form so you can submit it to yourself. -a_void@hotSNAILmail.com (remove SNAIL to reply) http://www.php.net/manual/en/function.strlen.php

« previous php.notes (#17881) next »