Posts Tagged with phpstring

Displaying 1-9 of 9 results.
Resolved: PHP trim my strings in array
posted by admin on March 27, 2016
I have array, and I want to trim my array elements
My array

$arr = array(" one", " two", " three ", ..., etc);
Read more
Resolved: PHP remove empty strings from array
posted by admin on March 27, 2016
I have array

$arr = array("one", "two", "", "four");


I want to remove empty string from array with indexRead more
Resolved: PHP Compose array from string, by comma and space
posted by admin on March 27, 2016
I have hashtags, and I want to compose array from my hashtags string. My hashtags format is

one, two, three, four, five, six, 0909090, ... etc
Read more
Resolved: PHP Regex Remove special chars, symbols from string, allow only comma and space
posted by admin on March 27, 2016
I have tags on my blog.
Tags format, which user write is like

one, two, three, four, five, six, seven, 11887, ... etc


I want to protect my tags, and exclude situations like

#asdad, asdsad#adsd, ***m,
Read more
Resolved: PHP replace words in string array without case sensitive
posted by admin on March 11, 2016
I want to replace words in array string, only single word, without contains in another word, only, when the word in format SPACE+WORD+SPACE.

For example

$string = ['Москва — город герой!', 'москва не резиновая', 'москватека не резиновая', 'текамоскватека не резиновая', 'текамосква не резиновая'];


I want to replace all "Москва", and "москва" to Moscow, and get result output like

Array ( [0] => Moscow — город герой! [1] => Moscow не резиновая [2] => москватека не резиновая [3] => текамоскватека не резиновая [4] => текамосква не резиновая )
Read more
Resolved: markItUp. BBCode Parser with emotions smiles
posted by admin on December 25, 2015
altI want to convert convert markItUp BBCode to HTML tags.
I have smiles too.Read more
Resolved: PHP "strip_tags" accept all except script
posted by admin on December 25, 2015
I want full allowed tags listRead more
Resolved: MarkItUp emotions smileys click insert to editor javascript jquery
posted by admin on December 25, 2015
altHow to insert markitup smileys to markitup editor.

<div id="emoticons">
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
</a>
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
</a>
<a href="#" alt="EMOTION_CODE">
<img alt="EMOTION_CODE" src="EMOTION_IMG">
</a>
etc
</div>
Read more
Resolved: PHP replace php start and end tags to lt gt
posted by admin on December 22, 2015
I want to replace <?php and ?> symbols to lt gt html special charectersRead more