What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-13 17:50:10
auto generate table of contents php
<?php function TableOfContents($depth) /*AutoTOC function written by Alex Freeman * Released under CC-by-sa 3.0 license * http://www.10stripe.com/ */ { $filename = __FILE__; //read in the file $file = fopen($filename,"r"); $html_str... Add solution -
Javascript 2022-02-12 07:25:09
axios api post request
const axios = require('axios'); // Make a request for a user with a given ID axios.get('/user?ID=12345') .then(function (response) { // handle success console.log(response); }) .catch(function (error) { // handle error console.log(e... Add solution -
PHP 2022-02-12 01:45:10
laravel accesor set by default
/** * The "booting" method of the model. * * @return void */ protected static function boot() { parent::boot(); // auto-sets values on creation static::creating(function ($query) { $query->is_voicemail = $query->is... Add solution -
PHP 2022-02-07 05:10:08
Malformed UTF-8 characters, possibly incorrectly encoded
/** * Encode array from latin1 to utf8 recursively * @param $dat * @return array|string */ public static function convert_from_latin1_to_utf8_recursively($dat) { if (is_string($dat)) { return utf8_encode($dat); } elseif (is_... Add solution
Best helpers
Cob
+5
Nick Rowe
+5
V0ight
+5
Jun Czyrka
+5
AppleFix88
+5
Kapil
+5
Oddthinking
+5
Arttu
+5
Geoffre14
+5
Lvoyster
+5
BuckNaked69
+5
S9527
+5