Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $metaWords = [ 'slovo_1', 'slovo_2', 'slovo_3', ]; $uri = explode('/', $_SERVER['REQUEST_URI']); $url = "test.ru/slovo/stranica"; $uri = explode('/', $url); $uri = array_slice($uri, 1, -1); $metaWords = array_merge($metaWords, $uri); //print_r ($metaWords); echo "<meta name=\"keywords\" content=\"", implode(", ", $metaWords), "\">";
Copy Clear