What do you want to save?
Add Code snippet
New code examples
-
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 -
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 -
PHP 2021-08-27 16:40:02
sum of associative array in php
<?php $items = [ ['label' => 'cake', 'name' => 'Cake', 'price' => 150], ['label' => 'pizza', 'name' => 'Pizza', 'price' => 250], ['label' => 'puff', 'name' => 'Veg Puff', 'price' => 20], ['label' => 'samosa... Add solution -
Javascript 2021-08-27 13:30:01
select all checkboxes html js
<script language="JavaScript"> function toggle(source) { checkboxes = document.getElementsByName('foo'); for(var i=0, n=checkboxes.length;i<n;i++) { checkboxes[i].checked = source.checked; } } </script> <input type=&... Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5