How to write this function ?? This post was last edited by u013177281 at 20:03:59, January 16 ,.
The input function parameter guanggaotiao1 shows the above function
$ Guanggaotutiao1 is global
How to write this function ??
Reply to discussion (solution)
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs='';}return $bjjs;}guanGao($guanggaotutiao1);
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs='';}return $bjjs;}guanGao($guanggaotutiao1);No, $ guanggaotutiao1 will become
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs='';}return $bjjs;}guanGao($guanggaotutiao1);No, $ guanggaotutiao1 will become
$ Guanggaotutiao1 = $ _ MODULE ["guanggaotiao1"]; isn't this the change $ guanggaotutiao1?
Then call guangGao (); this function!
No function required
$ Bjjs = $ _ MODULE ["guanggaotiao1"]? 'Background: url ('. $ _ MODULE ["guanggaotiao1"].') ': '';
If you must write a function
Function background ($ url ){
Return $ url? "Background: url ($ url )":'';
}
Call
$ Bjjs = background ($ _ MODULE ["guanggaotiao1"]);
? The post rate is 0. I will go
There is no need to take action if the posting rate is 0, and the minimum level of respect is unknown.
Warning two upstairs! Do not launch personal attacks
The landlord's Registration Date: December 16, 2013
This post is sent, and the natural post completion rate is 0.