What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-30 01:03:05
upload file to firebase storage laravel
$image = $request->image; //base64 string from frontend $student = app('firebase.firestore')->database()->collection('Student')->document('defT5uT7SDu9K5RFtIdl'); $firebase_storage_path = 'Students/'; $name = $student->id();... Add solution -
PHP 2021-09-26 05:09:04
php convert accented characters to html entities
public static function remove_accents($string, $german = false) { // Single letters $single_fr = explode(" ", "À Á Â Ã Ä Å Ą Ă Ç Ć Č &#... Add solution -
PHP 2021-09-25 01:23:04
php how to rename a file before saving it
$temp = explode(".", $_FILES["file"]["name"]); $newfilename = round(microtime(true)) . '.' . end($temp); move_uploaded_file($_FILES["file"]["tmp_name"], "../img/imageDirectory/" . $newfilename); Add solution -
PHP 2021-09-22 23:46:03
monday tuesday wednesday => monday - wednesday php
function weekendDaysToString($days, $lang = 'en') { $and = array('pt'=>'e', 'en'=>'and'); $strWeek = array( // config with more langs! 'pt'=>array("Segunda", "Terça", "Quarta", "Quinta... Add solution -
Python 2021-09-21 03:34:02
expand pandas dataframe into separate rows
def explode(df, lst_cols, fill_value='', preserve_index=False): # make sure `lst_cols` is list-alike if (lst_cols is not None and len(lst_cols) > 0 and not isinstance(lst_cols, (list, tuple, np.ndarray, pd.Series))): lst... Add solution