What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-20 04:32:09
clean function in php
/*** clean FUNCTION IN PHP PHP provides functions that help to clean up strings by removing unwanted whitespace or other characters from the beginning and/or end of the string: trim , rtrim , and ltrim. ***/ Example clean($request->description) /**... Add solution -
PHP 2021-11-19 13:56:44
connect an if statement to an input php
re: #80305 Again useful for newbies: if you need to compare a variable with a value, instead of doing <?php if ($foo == 3) bar(); ?> do <?php if (3 == $foo) bar(); ?> this way, if you forget a =, it will become <?php if (3 = $foo) b... Add solution -
PHP 2021-11-18 21:37:22
mamp change php version
As mentioned by @Scott in the comments under your question: Your here is the right link. Use the bottom answer to rename the bin/php directory. The MAMP preference pane will show the 2 latest versions in the php directory. – Scott Eisenberg And th... Add solution -
Shell/Bash 2021-11-14 06:17:10
Maximum upload file size: 2 MB
Step 1: find php.ini file in /etc folder by running below cmd: grep -rl "post_max_size" | xargs ls -lrth Here I have used post_max_size keyword to search php.ini file as might be we have to change the same on other file , It can vary ... Add solution -
PHP 2021-11-11 03:09:14
install php 7.4 on ubuntu 20.04
sudo apt update sudo apt install php7.4 sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y Add solution
Best helpers
Hassan Selim
+5
RlonRyan
+5
MeRuud
+5
Pawel_winzig
+5
Yyy
+5
Liz Read
+5
Fny
+5
Laurie H
+5
Jsejcksn
+5
Adam
+5
ABostonBrit
+5