PHP

Entries about: PHP
^Top
<< Back
Mobile-Menu










Sections

Snippets

Check if String exists in String

&nbsp;Here code to check if a string exists in another string! $string = &#39;This is a String&#39;; if (strpos($string , &#39;This&#39;) !== false) { &nbsp;&nbsp;&nbsp; echo &#39;true&#39;; # STRING CONTAINS W...


Replace in a String

Example of replacing a sign in a string (works with more than one sign) &nbsp; $newstring = str_replace(&quot;TEXT&quot;, &quot;NEW TEXT&quot;, $initialstring); ...


SEO Friendly URLs

ModRewrite needs to be enabled in apache2 by executing: a2enmod rewrite Modify your HTaccess File like this if index.php is your main php File: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rew...


This Website is using Session Cookies for Site Functionality.