<?php if( $this-artist-review ): ?<?php
$word = "system-readmore";
$mystring = $this-artist-review;
// Test if string contains the word
if(strpos($mystring, $word) !== false){
echo "Word Found!";
} else {
echo "Word Not Found!";
}
?<?php endif; ?
…
Read more
This prints first 200 characters of a given text.
$content = $this-artist-name;
$pos = strpos($content, ' ', 200);
echo substr($content,0,$pos );
…
Read more
In 1966 John Lennon said “We’re more popular than Jesus now.” According to Google Trends, it is Justin Bieber who is bigger than Jesus. Except for Belarus. An obviously godless country with much better taste in music than the rest of Planet Earth. The #Prince or Michael Jackson question pretty much over too. Even Jesus kicks Prince’s ass
…
Read more
Sometimes you need to replace some text in your Mysql database. Whatever it is (a user ID or a user name), this is the SQL query you need to run:
UPDATE `table` SET `field` = REPLACE(`field`, ‘string’, ‘anothervalue’)
…
Read more