\n border=\"1\" style=\"width: 80%;\">\n \n \n \n {% for product in products %}\n \n
Product<\/td>\n Description<\/td>\n Value<\/td>\n Date<\/td>\n <\/tr>\n <\/thead>\n
{{ product.name }}<\/td>\n {{ product.description }}<\/td>\n {{ product.value }}<\/td>\n {{ product.date_register|date(\"m\/d\/Y\") }}<\/td>\n <\/tr>\n {% endfor %}\n <\/tbody>\n <\/table>\n <\/body>\n<\/html><\/pre>\n

At this point, we still have the same page, but we reduce its complexity by decoupling the context blocks. <\/p>\n

Cache<\/strong><\/p>

Environment<\/code>Objects can not only be used to load templates. If we pass using the cache<\/code> option of the associated directory, Twig will cache the compiled template, thus avoiding parsing the template in subsequent requests. The compiled template will be stored in the directory we provide. Note that this is the cache for the compiled templates, not the cache for the evaluated templates. This means that Twig will parse, compile and save the template file. All subsequent requests still require evaluation templates, but the first step is already done for you. Let's cache the template in the example by editing the bootstrap.php<\/code> file: <\/p>\n

 Hello \" . $name . \"<\/p>\"; ?><\/pre>\n

(The following content is similar to the original text, but some statement adjustments and paragraph divisions have been made, and the image position remains unchanged) <\/strong><\/p>\n

Cycle<\/strong><\/p>\n

In our example, we have seen how to loop with Twig. Basically, we use the for<\/code> tag and assign an alias to each element in the specified array. In this case, we assign an alias to the products<\/code> array. After that, we can use the product<\/code> operator to access all properties in each array element. We use the .<\/code> tag to indicate the end of the loop. We can also loop through numbers or letters using the endfor<\/code> operator. As shown below: ..<\/code>\n<\/p>\n

Hello {{ name }}<\/p><\/pre> or letter:

\n<\/p>\n

composer require twig\/twig<\/pre>This operator is just the syntax sugar of the 

function, and it works the same way as the native PHPrange<\/code> function. An equally useful option is to add conditions to the loop. Using conditions, we can filter the elements to iterate. Suppose we want to iterate over all products with a value less than 250: range<\/code>\n<\/p>\n

Conditional statement<\/strong>\n<\/p>Twig also provides conditional statements in the form of

, if<\/code>, elseif<\/code> and if not<\/code> tags. Just like in any programming language, we can use these tags to filter conditions in templates. Suppose in our example, we want to display only products with a value above 500: else<\/code>\n<\/p>\n

 'Notebook',\n        'description'   => 'Core i7',\n        'value'         =>  800.00,\n        'date_register' => '2017-06-22',\n    ],\n    [\n        'name'          => 'Mouse',\n        'description'   => 'Razer',\n        'value'         =>  125.00,\n        'date_register' => '2017-10-25',\n    ],\n    [\n        'name'          => 'Keyboard',\n        'description'   => 'Mechanical Keyboard',\n        'value'         =>  250.00,\n        'date_register' => '2017-06-23',\n    ],\n];\n\n\/\/ 渲染我們的視圖\necho $twig->render('index.html', ['products' => $products] );<\/pre>

Filter<\/strong>\n<\/p> Filters allow us to filter the information passed to the template and the format of the information displayed. Let's take a look at some of the most commonly used and important filters. A complete list of Twig filters can be found here.

\n<\/p>Date and

date_modify<\/code>\n<\/h3>

Filter formats the date to the given format. As we see in the example: date<\/code>\n<\/p>\n

\n\n    \n        \n        Twig Example<\/title>\n    <\/head>\n    <body>
<h1><a href="http://miracleart.cn/">国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂</a></h1>\n    <table> border=\"1\" style=\"width: 80%;\">\n        <thead>\n            <tr>\n                <td>Product<\/td>\n                <td>Description<\/td>\n                <td>Value<\/td>\n                <td>Date<\/td>\n            <\/tr>\n        <\/thead>\n        <tbody>\n            {% for product in products %}\n                <tr>\n                    <td>{{ product.name }}<\/td>\n                    <td>{{ product.description }}<\/td>\n                    <td>{{ product.value }}<\/td>\n                    <td>{{ product.date_register|date(\"m\/d\/Y\") }}<\/td>\n                <\/tr>\n            {% endfor %}\n        <\/tbody>\n    <\/table>\n    <\/body>\n<\/html><\/pre>We display dates in month\/day\/year format. In addition to the <p> filter, we can also use the <code>date<\/code> filter to change the date using the <code>date_modify<\/code> filter. For example, if we want to add a day to a date, we can use the following: <\/p>\n<pre class='brush:php;toolbar:false;'><!DOCTYPE html>\n<html lang=\"pt-BR\">\n    <head>\n        <meta charset=\"UTF-8\">\n        <title>Tutorial Example<\/title>\n    <\/head>\n    <body>\n        {% block content %}\n        {% endblock %}\n    <\/body>\n<\/html><\/pre>\n<h3><code>format<\/code><\/h3>\n<p>Format the given string by replacing all placeholders. For example: <\/p>\n<pre class='brush:php;toolbar:false;'>{% extends \"layout.html\" %}\n\n{% block content %}\n    <table> border=\"1\" style=\"width: 80%;\">\n        <thead>\n            <tr>\n                <td>Product<\/td>\n                <td>Description<\/td>\n                <td>Value<\/td>\n                <td>Date<\/td>\n            <\/tr>\n        <\/thead>\n        <tbody>\n            {% for product in products %}\n                <tr>\n                    <td>{{ product.name }}<\/td>\n                    <td>{{ product.description }}<\/td>\n                    <td>{{ product.value }}<\/td>\n                    <td>{{ product.date_register|date(\"m\/d\/Y\") }}<\/td>\n                <\/tr>\n            {% endfor %}\n        <\/tbody>\n    <\/table>\n{% endblock %}<\/pre>\n<h3><code>striptags<\/code><\/h3>\n<p><code>striptags<\/code> The filter removes SGML\/XML tags and replaces adjacent spaces with spaces: <\/p><pre class='brush:php;toolbar:false;'><?php echo \"<p> Hello \" . $name . \"<\/p>\"; ?><\/pre>\n<h3><code>escape<\/code><\/h3>\n<p><code>escape<\/code> is one of the most important filters. It filters the string to insert safely into the final output. By default, it uses HTML escape policy, so <\/p>\n<pre class='brush:php;toolbar:false;'><p>Hello {{ name }}<\/p><\/pre>\n<p>equivalent to <\/p>\n<pre class='brush:php;toolbar:false;'>composer require twig\/twig<\/pre>\n<p><code>js<\/code>, <code>css<\/code>, <code>url<\/code>, <code>html_attr<\/code> and <\/p> escape policies are also available. They are Javascript, CSS, URI, and HTML attribute context escape strings, respectively. <p>\n<strong><\/strong>Debug<\/p><p>\n<code>dump()<\/code> Finally, let's take a look at debugging. Sometimes we need to access all the information of the template variable. To do this, Twig has a <code>Twig_Extension_Debug<\/code> function. This function is not available by default. When creating a Twig environment, we have to add the <\/p> extension: <pre class='brush:php;toolbar:false;'><?php\n\/\/ 加載我們的自動(dòng)加載器\nrequire_once __DIR__.'\/vendor\/autoload.php';\n\n\/\/ 指定我們的Twig模板位置\n$loader = new Twig_Loader_Filesystem(__DIR__.'\/templates');\n\n\/\/ 實(shí)例化我們的Twig\n$twig = new Twig_Environment($loader);<\/pre>\n<p>\n<code>dump()<\/code>This step is necessary so that we do not accidentally leak debug information on the production server. Once the configuration is complete, we simply use the <\/p> function to dump all information about the template variables. <pre class='brush:php;toolbar:false;'><?php\nrequire_once __DIR__.'\/bootstrap.php';\n\n\/\/ 創(chuàng)建產(chǎn)品列表\n$products = [\n    [\n        'name'          => 'Notebook',\n        'description'   => 'Core i7',\n        'value'         =>  800.00,\n        'date_register' => '2017-06-22',\n    ],\n    [\n        'name'          => 'Mouse',\n        'description'   => 'Razer',\n        'value'         =>  125.00,\n        'date_register' => '2017-10-25',\n    ],\n    [\n        'name'          => 'Keyboard',\n        'description'   => 'Mechanical Keyboard',\n        'value'         =>  250.00,\n        'date_register' => '2017-06-23',\n    ],\n];\n\n\/\/ 渲染我們的視圖\necho $twig->render('index.html', ['products' => $products] );<\/pre>\n<p>\n<strong><\/strong>Conclusion<\/p>\n<p>\n<\/p>I hope this article will provide you with a solid foundation for Twig basics and start your project right away! If you want to have a deeper look at Twig, the official website provides very good documentation and references that you can check out. Do you use the template engine? What do you think of Twig? Would you compare it to popular alternatives like Blade or Smarty? <p>\n<strong><\/strong> (The following content is FAQ, the original text has been included, omitted here) <\/p>"}	</script>
	
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script>var V_PATH="/";window.onerror=function(){ return true; };</script>
</head>

<body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2">
	<link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css">
<header>
    <div   id="377j5v51b"   class="head">
        <div   id="377j5v51b"   class="haed_left">
            <div   id="377j5v51b"   class="haed_logo">
                <a href="http://miracleart.cn/" title="" class="haed_logo_a">
                    <img src="/static/imghw/logo.png" alt="" class="haed_logoimg">
                </a>
            </div>
            <div   id="377j5v51b"   class="head_nav">
                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a>
                    <div   class="377j5v51b"   id="dropdown-template1" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://miracleart.cn/article.html" title="Articles" class="languagechoosea on">Articles</a>
                            <a href="http://miracleart.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a>
                            <a href="http://miracleart.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a>
                    <div   class="377j5v51b"   id="dropdown-template1_1" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://miracleart.cn/course.html" title="Course" class="languagechoosea on">Course</a>
                            <a href="http://miracleart.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a>
                    <div   class="377j5v51b"   id="dropdown-template1_2" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://miracleart.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a>
                            <a href="http://miracleart.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a>
                            <a href="http://miracleart.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a>
                            <a href="http://miracleart.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a>
                            <a href="http://miracleart.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a>
                            <a href="http://miracleart.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="http://miracleart.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a>
                    <div   class="377j5v51b"   id="dropdown-template1_3" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://miracleart.cn/game" title="Game Download" class="languagechoosea on">Game Download</a>
                            <a href="http://miracleart.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a>

                        </div>
                    </div>
                </div>
            </div>
        </div>
                    <div   id="377j5v51b"   class="head_search">
                <input id="key_words"  onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="">
                <a href="javascript:;" title="search"  onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a>
            </div>
                <div   id="377j5v51b"   class="head_right">
            <div   id="377j5v51b"   class="haed_language">
                <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a>
                <div   class="377j5v51b"   id="dropdown-template" style="display: none;">
                    <div   id="377j5v51b"   class="languagechoose">
                                                <a href="javascript:setlang('zh-cn');" title="簡(jiǎn)體中文" class="languagechoosea">簡(jiǎn)體中文</a>
                                                <a href="javascript:;" title="English" class="languagechoosea">English</a>
                                                <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a>
                                                <a href="javascript:setlang('ja');" title="日本語(yǔ)" class="languagechoosea">日本語(yǔ)</a>
                                                <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a>
                                                <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a>
                                                <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a>
                                                <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a>
                                            </div>
                </div>
            </div>
            <span id="377j5v51b"    class="head_right_line"></span>
                            <div style="display: block;" id="login" class="haed_login ">
                    <a href="javascript:;"  title="Login" class="haed_logina ">Login</a>
                </div>
                <div style="display: block;" id="reg" class="head_signup login">
                    <a href="javascript:;"  title="singup" class="head_signupa">singup</a>
                </div>
            
        </div>
    </div>
</header>

	
	<main>
		<div   id="377j5v51b"   class="Article_Details_main">
			<div   id="377j5v51b"   class="Article_Details_main1">
							<div   id="377j5v51b"   class="Article_Details_main1L">
					<div   id="377j5v51b"   class="Article_Details_main1Lmain" id="Article_Details_main1Lmain">
						<div   id="377j5v51b"   class="Article_Details_main1L1">Table of Contents</div>
						<div   id="377j5v51b"   class="Article_Details_main1L2" id="Article_Details_main1L2">
							<!-- 左側(cè)懸浮,文章定位標(biāo)題1 id="Article_Details_main1L2s_1"-->
															<div   id="377j5v51b"   class="Article_Details_main1L2s ">
									<a href="#code-format-code" title="<code>format</code>" ><code>format</code></a>
								</div>
																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
									<a href="#code-striptags-code" title="<code>striptags</code>" ><code>striptags</code></a>
								</div>
																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
									<a href="#code-escape-code" title="<code>escape</code>" ><code>escape</code></a>
								</div>
														</div>
					</div>
				</div>
							<div   id="377j5v51b"   class="Article_Details_main1M">
					<div   id="377j5v51b"   class="phpgenera_Details_mainL1">
						<a href="http://miracleart.cn/" title="Home"
							class="phpgenera_Details_mainL1a">Home</a>
						<img src="/static/imghw/top_right.png" alt="" />
												<a href="http://miracleart.cn/be/"
							class="phpgenera_Details_mainL1a">Backend Development</a>
						<img src="/static/imghw/top_right.png" alt="" />
												<a href="http://miracleart.cn/php-weizijiaocheng.html"
							class="phpgenera_Details_mainL1a">PHP Tutorial</a>
						<img src="/static/imghw/top_right.png" alt="" />
						<span>Twig - the Most Popular Stand-Alone PHP Template Engine</span>
					</div>
					
					<div   id="377j5v51b"   class="Articlelist_txts">
						<div   id="377j5v51b"   class="Articlelist_txts_info">
							<h1 class="Articlelist_txts_title">Twig - the Most Popular Stand-Alone PHP Template Engine</h1>
							<div   id="377j5v51b"   class="Articlelist_txts_info_head">
								<div   id="377j5v51b"   class="author_info">
									<a href="http://miracleart.cn/member/1468493.html"  class="author_avatar">
									<img class="lazy"  data-src="https://img.php.cn/upload/avatar/000/000/001/66ea8139b1640968.png" src="/static/imghw/default1.png" alt="Lisa Kudrow">
									</a>
									<div   id="377j5v51b"   class="author_detail">
																			<a href="http://miracleart.cn/member/1468493.html" class="author_name">Lisa Kudrow</a>
                                										</div>
								</div>
                			</div>
							<span id="377j5v51b"    class="Articlelist_txts_time">Feb 09, 2025 am	 09:07 AM</span>
														
						</div>
					</div>
					<hr />
					<div   id="377j5v51b"   class="article_main php-article">
						<div   id="377j5v51b"   class="article-list-left detail-content-wrap content">
						<ins class="adsbygoogle"
							style="display:block; text-align:center;"
							data-ad-layout="in-article"
							data-ad-format="fluid"
							data-ad-client="ca-pub-5902227090019525"
							data-ad-slot="3461856641">
						</ins>
						

					<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/173906323392943.jpg" class="lazy" alt="Twig - the Most Popular Stand-Alone PHP Template Engine "></p>
<p><strong>Twig: A popular PHP template engine</strong></p>
<p>Twig is a popular PHP template engine developed by Sensio Labs. It simplifies PHP code and adds features such as security and debugging. Twig acts on both frontend and backend of the project, and can be viewed from two perspectives: Twig for template designers and Twig for developers. Twig uses a core object named <code>Environment</code> to store configurations, extensions, and load templates from a file system or elsewhere. Twig supports nested templates (blocks), avoiding duplication of elements in templates, and can cache compiled templates to speed up subsequent requests. Twig supports conditional statements, loops and filters to control the display of information in templates and provides debugging capabilities to dump all information about template variables. </p>
<p><em>This article was peer-reviewed by Wern Ancheta. Thanks to all the peer reviewers of SitePoint for getting SitePoint content to its best!</em></p>
<hr>
<p>Twig is PHP's template engine. But isn't PHP itself a template engine? Yes, not! Although PHP was originally used as a template engine, it did not develop, and although we can still use it as a template engine, which version of "Hello world" do you prefer: </p>
<pre class='brush:php;toolbar:false;'><?php echo "<p> Hello " . $name . "</p>"; ?></pre>
<p>or </p>
<pre class='brush:php;toolbar:false;'><p>Hello {{ name }}</p></pre>
<p>PHP is a verbose language that is amplified when trying to output HTML content. Modern template systems will eliminate partial verboseness and add quite a bit of functionality to it. Features such as security and debugging capabilities are the backbone of modern template engines. Today, we will focus on Twig. </p>
<p><img src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/article/000/000/000/173906323392943.jpg"  class="lazy" alt="Twig - the Most Popular Stand-Alone PHP Template Engine " /></p>
<p>Twig is a template engine created by Sensio Labs (the development company of Blackfire and Symfony). Let's take a look at its main advantages and how to use it in your project. </p>
<p><strong>Installation</strong></p>
<p>There are two ways to install Twig. We can use the tar packages available on their website, or use Composer as we have been doing. </p>
<pre class='brush:php;toolbar:false;'>composer require twig/twig</pre>
<p><em>We assume you are running an environment where PHP is set up and Composer is installed globally. The best way is to use Homestead Improved – it allows you to start using it in 5 minutes on the exact same machine we use so we can be on the same page. If you want to learn more about the PHP environment, we have an excellent paid book about this here for purchase. </em></p>
<p>We need to clarify something before we can continue. As a template engine, Twig acts on both frontend and backend of the project. So we can look at Twig from two different perspectives: Twig for template designers and Twig for developers. On the one hand, we prepare all the data we need; on the other hand, we present all of this data. </p>
<p><strong>Basic Usage</strong></p><p>To illustrate the basic usage of Twig, let's create a simple project. First, we need to bootstrap Twig. Let's create a <code>bootstrap.php</code> file with the following content: </p>
<pre class='brush:php;toolbar:false;'><?php echo "<p> Hello " . $name . "</p>"; ?></pre>
<p>Twig uses a core object named <code>Environment</code>. Instances of this type are used to store configurations, extensions, and load templates from file systems or other locations. After our Twig instance boots, we can go ahead and create a <code>index.php</code> file where it loads some data and passes it to the Twig template. </p>
<pre class='brush:php;toolbar:false;'><p>Hello {{ name }}</p></pre>
<p> This is a simple example; we are creating an array containing products, such as our mechanical keyboard, which we can use in templates. Then we use the <code>render()</code> method, which accepts the template name (this is a file in the template folder we defined earlier) and the data we want to pass to the template. To complete our example, let's go to our <code>/templates</code> folder and create a <code>index.html</code> file. First, let's look at the template itself. </p>
<pre class='brush:php;toolbar:false;'>composer require twig/twig</pre>
<p>Open <code>index.php</code> in your browser (visit localhost or homestead.app, depending on how you set up the host and server) should now display the following screen: </p>
<p><img src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/article/000/000/000/173906323463936.jpg"  class="lazy" alt="Twig - the Most Popular Stand-Alone PHP Template Engine " /></p>
<p> But let's go back and take a closer look at our template code. There are two types of separators: <code>{{ ... }}</code> is used to print the results of an expression or operation, while <code>{% ... %}</code> is used to execute statements such as conditional statements and loops. These delimiters are the main language structure of Twig, which Twig uses to "inform" the template it must render the Twig element. </p>
<p><strong> (The following content is similar to the original text, but some statement adjustments and paragraph divisions have been made, and the image position remains unchanged) </strong></p>
<p><strong>Layout</strong></p>
<p> To avoid duplicating elements (such as headers and footers) in templates, Twig allows us to nest templates in templates, which are called blocks. To illustrate this, let's separate the actual content from the HTML definition in the example. Let's create a new HTML file and name it <code>layout.html</code>:</p>
<pre class='brush:php;toolbar:false;'><?php
// 加載我們的自動(dòng)加載器
require_once __DIR__.'/vendor/autoload.php';

// 指定我們的Twig模板位置
$loader = new Twig_Loader_Filesystem(__DIR__.'/templates');

// 實(shí)例化我們的Twig
$twig = new Twig_Environment($loader);</pre>
<p>We created a block called <code>content</code>. We mean that each template extending from <code>layout.html</code> can implement a <code>content</code> block, which will be displayed at that location. This way, we can reuse the layout multiple times without rewriting it. In this case, the <code>index.html</code> file now looks like this: </p>
<pre class='brush:php;toolbar:false;'><?php
require_once __DIR__.'/bootstrap.php';

// 創(chuàng)建產(chǎn)品列表
$products = [
    [
        'name'          => 'Notebook',
        'description'   => 'Core i7',
        'value'         =>  800.00,
        'date_register' => '2017-06-22',
    ],
    [
        'name'          => 'Mouse',
        'description'   => 'Razer',
        'value'         =>  125.00,
        'date_register' => '2017-10-25',
    ],
    [
        'name'          => 'Keyboard',
        'description'   => 'Mechanical Keyboard',
        'value'         =>  250.00,
        'date_register' => '2017-06-23',
    ],
];

// 渲染我們的視圖
echo $twig->render('index.html', ['products' => $products] );</pre>
<p>Twig also allows us to render only single blocks. To do this, we need to load the template first and then render the block. </p>
<pre class='brush:php;toolbar:false;'><!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta charset="UTF-8">
        <title>Twig Example</title>
    </head>
    <body>
    <table> border="1" style="width: 80%;">
        <thead>
            <tr>
                <td>Product</td>
                <td>Description</td>
                <td>Value</td>
                <td>Date</td>
            </tr>
        </thead>
        <tbody>
            {% for product in products %}
                <tr>
                    <td>{{ product.name }}</td>
                    <td>{{ product.description }}</td>
                    <td>{{ product.value }}</td>
                    <td>{{ product.date_register|date("m/d/Y") }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    </body>
</html></pre>
<p>At this point, we still have the same page, but we reduce its complexity by decoupling the context blocks. </p>
<p><strong>Cache</strong></p><p><code>Environment</code>Objects can not only be used to load templates. If we pass using the <code>cache</code> option of the associated directory, Twig will cache the compiled template, thus avoiding parsing the template in subsequent requests. The compiled template will be stored in the directory we provide. Note that this is the cache for the compiled templates, not the cache for the evaluated templates. This means that Twig will parse, compile and save the template file. All subsequent requests still require evaluation templates, but the first step is already done for you. Let's cache the template in the example by editing the <code>bootstrap.php</code> file: </p>
<pre class='brush:php;toolbar:false;'><?php echo "<p> Hello " . $name . "</p>"; ?></pre>
<p><strong> (The following content is similar to the original text, but some statement adjustments and paragraph divisions have been made, and the image position remains unchanged) </strong></p>
<p><strong>Cycle</strong></p>
<p> In our example, we have seen how to loop with Twig. Basically, we use the <code>for</code> tag and assign an alias to each element in the specified array. In this case, we assign an alias to the <code>products</code> array. After that, we can use the <code>product</code> operator to access all properties in each array element. We use the <code>.</code> tag to indicate the end of the loop. We can also loop through numbers or letters using the <code>endfor</code> operator. As shown below: <code>..</code>
</p>
<pre class='brush:php;toolbar:false;'><p>Hello {{ name }}</p></pre> or letter: <p>
</p>
<pre class='brush:php;toolbar:false;'>composer require twig/twig</pre>This operator is just the syntax sugar of the <p> function, and it works the same way as the native PHP<code>range</code> function. An equally useful option is to add conditions to the loop. Using conditions, we can filter the elements to iterate. Suppose we want to iterate over all products with a value less than 250: <code>range</code>
</p>
<pre class='brush:php;toolbar:false;'><?php
// 加載我們的自動(dòng)加載器
require_once __DIR__.'/vendor/autoload.php';

// 指定我們的Twig模板位置
$loader = new Twig_Loader_Filesystem(__DIR__.'/templates');

// 實(shí)例化我們的Twig
$twig = new Twig_Environment($loader);</pre><p>Conditional statement<strong></strong>
</p>Twig also provides conditional statements in the form of <p>, <code>if</code>, <code>elseif</code> and <code>if not</code> tags. Just like in any programming language, we can use these tags to filter conditions in templates. Suppose in our example, we want to display only products with a value above 500: <code>else</code>
</p>
<pre class='brush:php;toolbar:false;'><?php
require_once __DIR__.'/bootstrap.php';

// 創(chuàng)建產(chǎn)品列表
$products = [
    [
        'name'          => 'Notebook',
        'description'   => 'Core i7',
        'value'         =>  800.00,
        'date_register' => '2017-06-22',
    ],
    [
        'name'          => 'Mouse',
        'description'   => 'Razer',
        'value'         =>  125.00,
        'date_register' => '2017-10-25',
    ],
    [
        'name'          => 'Keyboard',
        'description'   => 'Mechanical Keyboard',
        'value'         =>  250.00,
        'date_register' => '2017-06-23',
    ],
];

// 渲染我們的視圖
echo $twig->render('index.html', ['products' => $products] );</pre><p>Filter<strong></strong>
</p> Filters allow us to filter the information passed to the template and the format of the information displayed. Let's take a look at some of the most commonly used and important filters. A complete list of Twig filters can be found here. <p>
</p>Date and <h3><code>date_modify</code>
</h3><p> Filter formats the date to the given format. As we see in the example: <code>date</code>
</p>
<pre class='brush:php;toolbar:false;'><!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta charset="UTF-8">
        <title>Twig Example</title>
    </head>
    <body>
    <table> border="1" style="width: 80%;">
        <thead>
            <tr>
                <td>Product</td>
                <td>Description</td>
                <td>Value</td>
                <td>Date</td>
            </tr>
        </thead>
        <tbody>
            {% for product in products %}
                <tr>
                    <td>{{ product.name }}</td>
                    <td>{{ product.description }}</td>
                    <td>{{ product.value }}</td>
                    <td>{{ product.date_register|date("m/d/Y") }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    </body>
</html></pre>We display dates in month/day/year format. In addition to the <p> filter, we can also use the <code>date</code> filter to change the date using the <code>date_modify</code> filter. For example, if we want to add a day to a date, we can use the following: </p>
<pre class='brush:php;toolbar:false;'><!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta charset="UTF-8">
        <title>Tutorial Example</title>
    </head>
    <body>
        {% block content %}
        {% endblock %}
    </body>
</html></pre>
<h3 id="code-format-code"><code>format</code></h3>
<p>Format the given string by replacing all placeholders. For example: </p>
<pre class='brush:php;toolbar:false;'>{% extends "layout.html" %}

{% block content %}
    <table> border="1" style="width: 80%;">
        <thead>
            <tr>
                <td>Product</td>
                <td>Description</td>
                <td>Value</td>
                <td>Date</td>
            </tr>
        </thead>
        <tbody>
            {% for product in products %}
                <tr>
                    <td>{{ product.name }}</td>
                    <td>{{ product.description }}</td>
                    <td>{{ product.value }}</td>
                    <td>{{ product.date_register|date("m/d/Y") }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}</pre>
<h3 id="code-striptags-code"><code>striptags</code></h3>
<p><code>striptags</code> The filter removes SGML/XML tags and replaces adjacent spaces with spaces: </p><pre class='brush:php;toolbar:false;'><?php echo "<p> Hello " . $name . "</p>"; ?></pre>
<h3 id="code-escape-code"><code>escape</code></h3>
<p><code>escape</code> is one of the most important filters. It filters the string to insert safely into the final output. By default, it uses HTML escape policy, so </p>
<pre class='brush:php;toolbar:false;'><p>Hello {{ name }}</p></pre>
<p>equivalent to </p>
<pre class='brush:php;toolbar:false;'>composer require twig/twig</pre>
<p><code>js</code>, <code>css</code>, <code>url</code>, <code>html_attr</code> and </p> escape policies are also available. They are Javascript, CSS, URI, and HTML attribute context escape strings, respectively. <p>
<strong></strong>Debug</p><p>
<code>dump()</code> Finally, let's take a look at debugging. Sometimes we need to access all the information of the template variable. To do this, Twig has a <code>Twig_Extension_Debug</code> function. This function is not available by default. When creating a Twig environment, we have to add the </p> extension: <pre class='brush:php;toolbar:false;'><?php
// 加載我們的自動(dòng)加載器
require_once __DIR__.'/vendor/autoload.php';

// 指定我們的Twig模板位置
$loader = new Twig_Loader_Filesystem(__DIR__.'/templates');

// 實(shí)例化我們的Twig
$twig = new Twig_Environment($loader);</pre>
<p>
<code>dump()</code>This step is necessary so that we do not accidentally leak debug information on the production server. Once the configuration is complete, we simply use the </p> function to dump all information about the template variables. <pre class='brush:php;toolbar:false;'><?php
require_once __DIR__.'/bootstrap.php';

// 創(chuàng)建產(chǎn)品列表
$products = [
    [
        'name'          => 'Notebook',
        'description'   => 'Core i7',
        'value'         =>  800.00,
        'date_register' => '2017-06-22',
    ],
    [
        'name'          => 'Mouse',
        'description'   => 'Razer',
        'value'         =>  125.00,
        'date_register' => '2017-10-25',
    ],
    [
        'name'          => 'Keyboard',
        'description'   => 'Mechanical Keyboard',
        'value'         =>  250.00,
        'date_register' => '2017-06-23',
    ],
];

// 渲染我們的視圖
echo $twig->render('index.html', ['products' => $products] );</pre>
<p>
<strong></strong>Conclusion</p>
<p>
</p>I hope this article will provide you with a solid foundation for Twig basics and start your project right away! If you want to have a deeper look at Twig, the official website provides very good documentation and references that you can check out. Do you use the template engine? What do you think of Twig? Would you compare it to popular alternatives like Blade or Smarty? <p>
<strong></strong> (The following content is FAQ, the original text has been included, omitted here) </p><p>The above is the detailed content of Twig - the Most Popular Stand-Alone PHP Template Engine. For more information, please follow other related articles on the PHP Chinese website!</p>


						</div>
					</div>
					<div   id="377j5v51b"   class="wzconShengming_sp">
						<div   id="377j5v51b"   class="bzsmdiv_sp">Statement of this Website</div>
						<div>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</div>
					</div>
				</div>

				<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-5902227090019525"
     data-ad-slot="2507867629"></ins>



				<div   id="377j5v51b"   class="AI_ToolDetails_main4sR">


				<ins class="adsbygoogle"
        style="display:block"
        data-ad-client="ca-pub-5902227090019525"
        data-ad-slot="3653428331"
        data-ad-format="auto"
        data-full-width-responsive="true"></ins>
    


					<!-- <div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Article</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819578.html" title="How to fix KB5060533 fails to install in Windows 10?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5060533 fails to install in Windows 10?</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819730.html" title="Dune: Awakening - Where To Get Insulated Fabric" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Where To Get Insulated Fabric</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819016.html" title="Gmail Login: How to Sign Up, Sign In, or Sign Out of Gmail - MiniTool" class="phpgenera_Details_mainR4_bottom_title">Gmail Login: How to Sign Up, Sign In, or Sign Out of Gmail - MiniTool</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819994.html" title="How to fix KB5060999 fails to install in Windows 11?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5060999 fails to install in Windows 11?</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>3 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819536.html" title="Guild Guide In Tainted Grail: The Fall Of Avalon" class="phpgenera_Details_mainR4_bottom_title">Guild Guide In Tainted Grail: The Fall Of Avalon</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://miracleart.cn/article.html">Show More</a>
							</div>
						</div>
					</div> -->


											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/hottools2.png" alt="" />
									<h2>Hot AI Tools</h2>
								</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title">
													<h3>Undress AI Tool</h3>
												</a>
												<p>Undress images for free</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title">
													<h3>Undresser.AI Undress</h3>
												</a>
												<p>AI-powered app for creating realistic nude photos</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title">
													<h3>AI Clothes Remover</h3>
												</a>
												<p>Online AI tool for removing clothes from photos.</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title">
													<h3>Clothoff.io</h3>
												</a>
												<p>AI clothes remover</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title">
													<h3>Video Face Swap</h3>
												</a>
												<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
											</div>
										</div>
																</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
									<a href="http://miracleart.cn/ai">Show More</a>
								</div>
							</div>
						</div>
					


					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Article</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819578.html" title="How to fix KB5060533 fails to install in Windows 10?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5060533 fails to install in Windows 10?</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819730.html" title="Dune: Awakening - Where To Get Insulated Fabric" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Where To Get Insulated Fabric</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819016.html" title="Gmail Login: How to Sign Up, Sign In, or Sign Out of Gmail - MiniTool" class="phpgenera_Details_mainR4_bottom_title">Gmail Login: How to Sign Up, Sign In, or Sign Out of Gmail - MiniTool</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819994.html" title="How to fix KB5060999 fails to install in Windows 11?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5060999 fails to install in Windows 11?</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>3 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/1796819536.html" title="Guild Guide In Tainted Grail: The Fall Of Avalon" class="phpgenera_Details_mainR4_bottom_title">Guild Guide In Tainted Grail: The Fall Of Avalon</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://miracleart.cn/article.html">Show More</a>
							</div>
						</div>
					</div>


											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/hottools2.png" alt="" />
									<h2>Hot Tools</h2>
								</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title">
													<h3>Notepad++7.3.1</h3>
												</a>
												<p>Easy-to-use and free code editor</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title">
													<h3>SublimeText3 Chinese version</h3>
												</a>
												<p>Chinese version, very easy to use</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title">
													<h3>Zend Studio 13.0.1</h3>
												</a>
												<p>Powerful PHP integrated development environment</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title">
													<h3>Dreamweaver CS6</h3>
												</a>
												<p>Visual web development tools</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title">
													<h3>SublimeText3 Mac version</h3>
												</a>
												<p>God-level code editing software (SublimeText3)</p>
											</div>
										</div>
																	</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
									<a href="http://miracleart.cn/ai">Show More</a>
								</div>
							</div>
						</div>
										

					
					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Topics</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/gmailyxdlrkzn" title="Where is the login entrance for gmail email?" class="phpgenera_Details_mainR4_bottom_title">Where is the login entrance for gmail email?</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>8519</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>17</span>
										</div>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/java-tutorial" title="Java Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1744</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>16</span>
										</div>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/cakephp-tutor" title="CakePHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1599</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>56</span>
										</div>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1538</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>28</span>
										</div>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://miracleart.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1397</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>31</span>
										</div>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://miracleart.cn/faq/zt">Show More</a>
							</div>
						</div>
					</div>
				</div>
			</div>
							<div   id="377j5v51b"   class="Article_Details_main2">
					<div   id="377j5v51b"   class="phpgenera_Details_mainL4">
						<div   id="377j5v51b"   class="phpmain1_2_top">
							<a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img
									src="/static/imghw/index2_title2.png" alt="" /></a>
						</div>
						<div   id="377j5v51b"   class="phpgenera_Details_mainL4_info">

													<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796820395.html" title="What are some best practices for versioning a PHP-based API?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174983207178259.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are some best practices for versioning a PHP-based API?" />
								</a>
								<a href="http://miracleart.cn/faq/1796820395.html" title="What are some best practices for versioning a PHP-based API?" class="phphistorical_Version2_mids_title">What are some best practices for versioning a PHP-based API?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 14, 2025 am	 12:27 AM</span>
								<p class="Articlelist_txts_p">ToversionaPHP-basedAPIeffectively,useURL-basedversioningforclarityandeaseofrouting,separateversionedcodetoavoidconflicts,deprecateoldversionswithclearcommunication,andconsidercustomheadersonlywhennecessary.StartbyplacingtheversionintheURL(e.g.,/api/v</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796822204.html" title="How do I implement authentication and authorization in PHP?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175035261135357.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How do I implement authentication and authorization in PHP?" />
								</a>
								<a href="http://miracleart.cn/faq/1796822204.html" title="How do I implement authentication and authorization in PHP?" class="phphistorical_Version2_mids_title">How do I implement authentication and authorization in PHP?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 20, 2025 am	 01:03 AM</span>
								<p class="Articlelist_txts_p">TosecurelyhandleauthenticationandauthorizationinPHP,followthesesteps:1.Alwayshashpasswordswithpassword_hash()andverifyusingpassword_verify(),usepreparedstatementstopreventSQLinjection,andstoreuserdatain$_SESSIONafterlogin.2.Implementrole-basedaccessc</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796820386.html" title="What are the differences between procedural and object-oriented programming paradigms in PHP?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174983193177803.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are the differences between procedural and object-oriented programming paradigms in PHP?" />
								</a>
								<a href="http://miracleart.cn/faq/1796820386.html" title="What are the differences between procedural and object-oriented programming paradigms in PHP?" class="phphistorical_Version2_mids_title">What are the differences between procedural and object-oriented programming paradigms in PHP?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 14, 2025 am	 12:25 AM</span>
								<p class="Articlelist_txts_p">Proceduralandobject-orientedprogramming(OOP)inPHPdiffersignificantlyinstructure,reusability,anddatahandling.1.Proceduralprogrammingusesfunctionsorganizedsequentially,suitableforsmallscripts.2.OOPorganizescodeintoclassesandobjects,modelingreal-worlden</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796820387.html" title="What are weak references (WeakMap) in PHP, and when might they be useful?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174983195046134.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are weak references (WeakMap) in PHP, and when might they be useful?" />
								</a>
								<a href="http://miracleart.cn/faq/1796820387.html" title="What are weak references (WeakMap) in PHP, and when might they be useful?" class="phphistorical_Version2_mids_title">What are weak references (WeakMap) in PHP, and when might they be useful?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 14, 2025 am	 12:25 AM</span>
								<p class="Articlelist_txts_p">PHPdoesnothaveabuilt-inWeakMapbutoffersWeakReferenceforsimilarfunctionality.1.WeakReferenceallowsholdingreferenceswithoutpreventinggarbagecollection.2.Itisusefulforcaching,eventlisteners,andmetadatawithoutaffectingobjectlifecycles.3.YoucansimulateaWe</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796821722.html" title="How can you handle file uploads securely in PHP?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175026630154351.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How can you handle file uploads securely in PHP?" />
								</a>
								<a href="http://miracleart.cn/faq/1796821722.html" title="How can you handle file uploads securely in PHP?" class="phphistorical_Version2_mids_title">How can you handle file uploads securely in PHP?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 19, 2025 am	 01:05 AM</span>
								<p class="Articlelist_txts_p">To safely handle file uploads in PHP, the core is to verify file types, rename files, and restrict permissions. 1. Use finfo_file() to check the real MIME type, and only specific types such as image/jpeg are allowed; 2. Use uniqid() to generate random file names and store them in non-Web root directory; 3. Limit file size through php.ini and HTML forms, and set directory permissions to 0755; 4. Use ClamAV to scan malware to enhance security. These steps effectively prevent security vulnerabilities and ensure that the file upload process is safe and reliable.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796821728.html" title="How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175026645186884.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP?" />
								</a>
								<a href="http://miracleart.cn/faq/1796821728.html" title="How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP?" class="phphistorical_Version2_mids_title">How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 19, 2025 am	 01:07 AM</span>
								<p class="Articlelist_txts_p">Yes, PHP can interact with NoSQL databases like MongoDB and Redis through specific extensions or libraries. First, use the MongoDBPHP driver (installed through PECL or Composer) to create client instances and operate databases and collections, supporting insertion, query, aggregation and other operations; second, use the Predis library or phpredis extension to connect to Redis, perform key-value settings and acquisitions, and recommend phpredis for high-performance scenarios, while Predis is convenient for rapid deployment; both are suitable for production environments and are well-documented.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796821729.html" title="What are the differences between == (loose comparison) and === (strict comparison) in PHP?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175026647097920.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are the differences between == (loose comparison) and === (strict comparison) in PHP?" />
								</a>
								<a href="http://miracleart.cn/faq/1796821729.html" title="What are the differences between == (loose comparison) and === (strict comparison) in PHP?" class="phphistorical_Version2_mids_title">What are the differences between == (loose comparison) and === (strict comparison) in PHP?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 19, 2025 am	 01:07 AM</span>
								<p class="Articlelist_txts_p">In PHP, the main difference between == and == is the strictness of type checking. ==Type conversion will be performed before comparison, for example, 5=="5" returns true, and ===Request that the value and type are the same before true will be returned, for example, 5==="5" returns false. In usage scenarios, === is more secure and should be used first, and == is only used when type conversion is required.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://miracleart.cn/faq/1796821933.html" title="How do I perform arithmetic operations in PHP ( , -, *, /, %)?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175032439158710.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How do I perform arithmetic operations in PHP ( , -, *, /, %)?" />
								</a>
								<a href="http://miracleart.cn/faq/1796821933.html" title="How do I perform arithmetic operations in PHP ( , -, *, /, %)?" class="phphistorical_Version2_mids_title">How do I perform arithmetic operations in PHP ( , -, *, /, %)?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 19, 2025 pm	 05:13 PM</span>
								<p class="Articlelist_txts_p">The methods of using basic mathematical operations in PHP are as follows: 1. Addition signs support integers and floating-point numbers, and can also be used for variables. String numbers will be automatically converted but not recommended to dependencies; 2. Subtraction signs use - signs, variables are the same, and type conversion is also applicable; 3. Multiplication signs use * signs, which are suitable for numbers and similar strings; 4. Division uses / signs, which need to avoid dividing by zero, and note that the result may be floating-point numbers; 5. Taking the modulus signs can be used to judge odd and even numbers, and when processing negative numbers, the remainder signs are consistent with the dividend. The key to using these operators correctly is to ensure that the data types are clear and the boundary situation is handled well.</p>
							</div>
													</div>

													<a href="http://miracleart.cn/be/" class="phpgenera_Details_mainL4_botton">
								<span>See all articles</span>
								<img src="/static/imghw/down_right.png" alt="" />
							</a>
											</div>
				</div>
					</div>
	</main>
	<footer>
    <div   id="377j5v51b"   class="footer">
        <div   id="377j5v51b"   class="footertop">
            <img src="/static/imghw/logo.png" alt="">
            <p>Public welfare online PHP training,Help PHP learners grow quickly!</p>
        </div>
        <div   id="377j5v51b"   class="footermid">
            <a href="http://miracleart.cn/about/us.html">About us</a>
            <a href="http://miracleart.cn/about/disclaimer.html">Disclaimer</a>
            <a href="http://miracleart.cn/update/article_0_1.html">Sitemap</a>
        </div>
        <div   id="377j5v51b"   class="footerbottom">
            <p>
                ? php.cn All rights reserved
            </p>
        </div>
    </div>
</footer>

<input type="hidden" id="verifycode" value="/captcha.html">




		<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
	
	
	
	
	

	
	






<footer>
<div class="friendship-link">
<p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
<a href="http://miracleart.cn/" title="国产av日韩一区二区三区精品">国产av日韩一区二区三区精品</a>

<div class="friend-links">


</div>
</div>

</footer>


<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</body><div id="pepio" class="pl_css_ganrao" style="display: none;"><th id="pepio"><ol id="pepio"><thead id="pepio"></thead></ol></th><ul id="pepio"><ins id="pepio"><tt id="pepio"><optgroup id="pepio"></optgroup></tt></ins></ul><dl id="pepio"><s id="pepio"><i id="pepio"><sup id="pepio"></sup></i></s></dl><delect id="pepio"><menuitem id="pepio"></menuitem></delect><label id="pepio"><tbody id="pepio"><table id="pepio"><cite id="pepio"></cite></table></tbody></label><s id="pepio"><dl id="pepio"></dl></s><output id="pepio"><center id="pepio"><del id="pepio"><mark id="pepio"></mark></del></center></output><th id="pepio"><em id="pepio"><b id="pepio"></b></em></th><dd id="pepio"></dd><label id="pepio"></label><em id="pepio"><center id="pepio"><font id="pepio"><span id="pepio"></span></font></center></em><strong id="pepio"></strong><strike id="pepio"><dl id="pepio"></dl></strike><s id="pepio"></s><sub id="pepio"><span id="pepio"><sup id="pepio"><input id="pepio"></input></sup></span></sub><thead id="pepio"></thead><big id="pepio"></big><abbr id="pepio"></abbr><abbr id="pepio"><option id="pepio"><tt id="pepio"><delect id="pepio"></delect></tt></option></abbr><wbr id="pepio"></wbr><rt id="pepio"><legend id="pepio"></legend></rt><tt id="pepio"><output id="pepio"><center id="pepio"></center></output></tt><wbr id="pepio"></wbr><legend id="pepio"><blockquote id="pepio"><pre id="pepio"></pre></blockquote></legend><track id="pepio"></track><tt id="pepio"></tt><label id="pepio"></label><noframes id="pepio"></noframes><thead id="pepio"><menuitem id="pepio"><source id="pepio"></source></menuitem></thead><ul id="pepio"><pre id="pepio"><kbd id="pepio"></kbd></pre></ul><cite id="pepio"><object id="pepio"><style id="pepio"><label id="pepio"></label></style></object></cite><s id="pepio"></s><legend id="pepio"></legend><dl id="pepio"><sup id="pepio"></sup></dl><td id="pepio"><address id="pepio"><menuitem id="pepio"></menuitem></address></td><acronym id="pepio"><em id="pepio"><option id="pepio"></option></em></acronym><label id="pepio"><tbody id="pepio"></tbody></label><rt id="pepio"></rt><pre id="pepio"></pre><nav id="pepio"></nav><samp id="pepio"><dd id="pepio"><dfn id="pepio"></dfn></dd></samp><i id="pepio"><wbr id="pepio"><var id="pepio"></var></wbr></i><th id="pepio"><small id="pepio"><i id="pepio"></i></small></th><dl id="pepio"><sup id="pepio"><th id="pepio"><big id="pepio"></big></th></sup></dl><i id="pepio"></i><var id="pepio"></var><xmp id="pepio"><sup id="pepio"><thead id="pepio"></thead></sup></xmp><del id="pepio"><u id="pepio"><em id="pepio"></em></u></del><span id="pepio"></span><strong id="pepio"><td id="pepio"></td></strong><rp id="pepio"><pre id="pepio"><kbd id="pepio"><output id="pepio"></output></kbd></pre></rp><input id="pepio"><blockquote id="pepio"></blockquote></input><var id="pepio"><address id="pepio"></address></var><source id="pepio"><p id="pepio"></p></source><ol id="pepio"></ol><th id="pepio"></th><output id="pepio"></output><optgroup id="pepio"></optgroup><delect id="pepio"><dfn id="pepio"></dfn></delect><b id="pepio"></b><rp id="pepio"><dfn id="pepio"><th id="pepio"></th></dfn></rp><thead id="pepio"><pre id="pepio"></pre></thead><pre id="pepio"><tt id="pepio"><address id="pepio"></address></tt></pre><dfn id="pepio"></dfn><ol id="pepio"><thead id="pepio"><style id="pepio"></style></thead></ol><del id="pepio"></del><small id="pepio"><abbr id="pepio"></abbr></small><video id="pepio"><button id="pepio"></button></video><object id="pepio"><dl id="pepio"><legend id="pepio"><dd id="pepio"></dd></legend></dl></object><wbr id="pepio"><kbd id="pepio"></kbd></wbr><sub id="pepio"></sub><strong id="pepio"></strong><label id="pepio"><p id="pepio"><dl id="pepio"></dl></p></label><delect id="pepio"></delect><option id="pepio"></option><rp id="pepio"></rp><input id="pepio"></input><var id="pepio"><strike id="pepio"><dl id="pepio"><s id="pepio"></s></dl></strike></var><dfn id="pepio"><kbd id="pepio"></kbd></dfn><dl id="pepio"></dl><noframes id="pepio"></noframes><dfn id="pepio"><kbd id="pepio"><delect id="pepio"><center id="pepio"></center></delect></kbd></dfn><dl id="pepio"></dl><dd id="pepio"></dd><sup id="pepio"><thead id="pepio"><xmp id="pepio"><small id="pepio"></small></xmp></thead></sup><tfoot id="pepio"><dl id="pepio"><sup id="pepio"><th id="pepio"></th></sup></dl></tfoot><s id="pepio"><i id="pepio"></i></s><dl id="pepio"></dl><code id="pepio"></code><label id="pepio"></label><abbr id="pepio"></abbr><tbody id="pepio"><th id="pepio"><cite id="pepio"><strong id="pepio"></strong></cite></th></tbody><label id="pepio"></label><li id="pepio"></li><center id="pepio"><del id="pepio"><mark id="pepio"></mark></del></center><acronym id="pepio"></acronym><output id="pepio"><tr id="pepio"><del id="pepio"></del></tr></output><video id="pepio"></video><dl id="pepio"><legend id="pepio"><dd id="pepio"></dd></legend></dl></div>

</html>