Home > Backend Development > PHP Tutorial > php learning (2)

php learning (2)

WBOY
Release: 2016-07-28 08:29:02
Original
1131 people have browsed it

php function:

  • generate css function
<code><span><?php</span><span>//该函数生成一个css</span><span><span>function</span><span>page</span><span>(<span>$bgcolor</span> = NULL,<span>$font_color</span> = NULL,<span>$font_size</span>)</span>{</span><span>echo</span><span>"<style>
         body{
          background-color: $bgcolor;
          color:$font_color;
          font-size: $font_size;
         }</style>"</span>;
}
page(<span>'red'</span>,<span>'green'</span>,<span>'24'</span>);
<span>?></span></code>
Copy after login
    *
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces PHP learning (2), including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template