What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-21 10:35:07
php csv auto download
<?php header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename="sample.csv"'); $list = array ( array('aaa', 'bbb', 'ccc', 'dddd'), array('123', '456', '789'), array('"aaa"', '"bbb"')... Add solution -
PHP 2022-02-27 21:20:14
php remove duplicates from multidimensional array
<?php $fruits_list = array('Orange', 'Apple', ' Banana', 'Cherry', ' Banana'); $result = array_unique($fruits_list); print_r($result); ?> Output: Array ( [0] => Orange [1] => Apple [2] => Banana [3] => Cherry ) Add solution -
Other 2022-02-20 15:45:19
vhdl create fifo
------------------------------------------------------------------------------- -- File Downloaded from http://www.nandland.com -- -- Description: Creates a Synchronous FIFO made out of registers. -- &n... Add solution -
PHP 2022-02-09 21:05:02
divi layout injector shortcode module in function php file
// Shortcode pour afficher le module function showmodule_shortcode ($ moduleid) { extract (shortcode_atts (array ('id' => '*'), $ moduleid)); return do_shortcode ('[et_pb_section global_module = "'. $ id. '"] [/ et_pb_section]'); } add_short... Add solution -
PHP 2022-02-01 23:21:17
how to set select option value dynamically in php
foreach($optionArr as $key => $value){ $isSelected =""; //added this line if($_REQUEST['opt_side_'.$cside] == $value){ $isSelected = "selected"; } echo '<option value="'.$value.'"'.$isSelected.'>'.$k... Add solution -
PHP 2022-01-28 00:35:49
wordpress php query randomise
//Create WordPress Query with 'orderby' set to 'rand' (Random) $the_query = new WP_Query( array ( 'orderby' => 'rand', 'posts_per_page' => '1' ) ); // output the random post while ( $the_query->have_posts() ) : $the_query->the_post(); echo... Add solution -
Javascript 2022-01-27 22:10:41
drupal tag filter ajax content
<?php /** * @file * Module file for Popolo Custom. */ /** * Implements hook_form_alter(). */ function popolo_custom_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id){ // Apply the form_alter to a specific ... Add solution -
PHP 2022-01-26 18:40:53
laravel transform object to array
$person = new stdClass(); $person->firstName = "Taylor"; $person->age = 32; //Convert Single-Dimention Object to array $personArray = (array) $person; //Convert Multi-Dimentional Object to Array $personArray = objectToArray($person); fun... Add solution -
BASIC 2022-01-26 09:25:36
visual basic data type
' For VBA / VB / Visual Basic only 'EXAMPLE Dim sStringVar as String sStringVar = "What data-type am I being seen as?" MsgBox(VarType(sStringVar)) ' This will give an output of: 8 'SYNTAX ' VarType(<variable-that-you-want-to-check-the... Add solution