How to write this function ??

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.