what is mean of the following code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

what is mean of the following code

Post by Lphp »

Code: Select all

str_replace(" ", "%20", trim($row_user['video']))
why need to replace the empty string with "%20"
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

Re: what is mean of the following code

Post by Lphp »

also what is the javascript:clickViewVideo
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: what is mean of the following code

Post 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.
Post Reply