Page 1 of 1

what is mean of the following code

Posted: Sun Nov 06, 2011 8:31 pm
by Lphp

Code: Select all

str_replace(" ", "%20", trim($row_user['video']))
why need to replace the empty string with "%20"

Re: what is mean of the following code

Posted: Sun Nov 06, 2011 8:33 pm
by Lphp
also what is the javascript:clickViewVideo

Re: what is mean of the following code

Posted: Sun Nov 06, 2011 9:13 pm
by Celauran
%20 is hex for a space. The same could have been achieved using urlencode().

clickViewVideo is some custom JS function. You'd have to look into the code to see exactly what it does.