What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-08-29 16:51:01
get_next_post custom post type
<?php $prev_post = get_previous_post(); if($prev_post) { $prev_title = strip_tags(str_replace('"', '', $prev_post->post_title)); echo "\t" . '<a rel="prev" href="' . get_permalink($prev_post->ID) . '" t... Add solution -
PHP 2021-08-29 16:19:01
php code to read rss feed
<?php $url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCbMi18KmKXRb79716KgnVOA"; $xml = simplexml_load_file($url) or die("Error: Cannot create object"); //echo "number of entries: " . count($xml->entry) . &... Add solution -
Javascript 2021-08-28 01:15:03
remove space from string javascript
str.replace(/\s+/g, '') Add solution -
Javascript 2021-08-27 23:17:02
add slashes to string
str = str.replace(/'/g, "\\'"); Add solution -
PHP 2021-08-27 17:48:02
display content in table in drupal 7
<?php echo show_table('blocks', 50); function show_table($table = NULL, $rows_per_page = 20) { if (!$table || !db_table_exists($table)) { drupal_set_message(t('You must supply a valid database table name.'), 'error'); drupal_access_denied(); ... Add solution -
Shell/Bash 2021-08-27 05:21:01
powershell string replace
# Using the replace function (case sensitive) $str = "Hello world!" $str.replace("world", "Mars") # Hello Mars! # Using the replace operator (case insensitive, allows RegEx) $str = "Hello world!" $str -replace &quo... Add solution
Best helpers
Ranking is empty