This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$categoriesNames = array(); | |
foreach ($categories as $categoryName) { | |
$categoriesNames[] = trim((string)$categoryName); | |
} | |
// так же лучше? | |
$categoriesNames = array_map("trim", $categories); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###bottomads | |
##.fb-like | |
##.fb-like-box | |
##.fbFooterBorder | |
##.twitter-follow-button | |
##.twitter-share-button | |
##[title="Share on Facebook"] | |
##[title="Share on Twitter"] | |
##A[href^="http://www.facebook.com/sharer.php?"] | |
-tizer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###bottomads | |
##.fb-like | |
##.fb-like-box | |
##.fbFooterBorder | |
##.twitter-follow-button | |
##.twitter-share-button | |
##[title="Share on Facebook"] | |
##[title="Share on Twitter"] | |
##A[href^="http://www.facebook.com/sharer.php?"] | |
-tizer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -pe 's/.*<Id>(.*)<\/Id>/$1/g' < ceebo.id.txt > ceebo.id2.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ParseISO8601(iso) | |
{ | |
// 0 = whole string | |
// 1 = year | |
// 2 = month | |
// 3 = day | |
// 4 = whole time part | |
// 5 = hour | |
// 6 = minute | |
// 7 = second |
OlderNewer