पीएचपी output_add_rewrite_var () फ़ंक्शन
❮ पीएचपी आउटपुट नियंत्रण कार्य
उदाहरण
आउटपुट में URL में वेरिएबल जोड़ें:
<?php
// Make the URL rewriter affect <a href> and <form> tags
ini_set('url_rewriter.tags','a=href,form=');
// Add a variable
output_add_rewrite_var('var', 'value');
// Output a link and a form
echo '<a href="">This link\'s URL will have a variable</a>';
echo '<form>';
echo '<p>This form will have a hidden input</p>';
echo '<input type="text"
name="hello">';
echo
'</form>';
?>
परिभाषा और उपयोग
output_add_rewrite_var()
फ़ंक्शन HTML टैग्स में URL में एक वैरिएबल जोड़ता है और प्रपत्रों में छिपे हुए इनपुट को जोड़ता है । url_rewriter.tags
प्रभावित होने वाले टैग php.ini में सेटिंग के कॉन्फ़िगरेशन पर निर्भर करते हैं
।
वाक्य - विन्यास
output_add_rewrite_var(name, value);
पैरामीटर मान
Parameter | Description |
---|---|
name | The name of the variable to be added to URLs and the content of the name attribute of hidden inputs in forms. |
value | The value of the variable to be added to URLs and the content of the value attribute of hidden inputs in forms. |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | सफलता पर सत्य, असफलता पर असत्य |
---|---|
पीएचपी संस्करण: | 4.3+ |
❮ पीएचपी आउटपुट नियंत्रण कार्य