์ฐธ๊ณ Note
- ๋ฅ์ง
- Development
- ๋ถ๋ฅ
- PHP
- ๋ฑ๋ก์ผ
- 2019-06-21 02:40:23
- ์กฐํ์
- 886
- ์ข์์
- 0
(์ ๊ทํํ์) ํน์ ๋จ์ด ์ฌ์ด์ ๋ฌธ์๋ฅผ ์ถ์ถ
$str = "<i>ABC</i>";
preg_match("|<i>(.*)</i>|iU", $str, $res);
echo $res[1];
php 5.5.x์์ ์์ค๋ฅผ ์์ ํ๊ณ ๋ฐ๋ก ์นํ์ด์ง์์ ๋ฐ๋ก ์ ์ฉ์ด ์๋ ๊ฒฝ์ฐ
5.5.x์ดํ์์๋ ๊ธฐ๋ณธ์ ์ผ๋ก opcache๊ฐ ๋ค์ด๊ฐ์๋ค. ๊ทธ๋์ php.ini์์ ๊ณ ์ณ์ค์ผํ ๋ถ๋ถ์ด ์๋ค.opcache.revalidate_freq=2 ์ซ์ ๋จ์๋ ์ด
์ฐธ๊ณ ๋ด์ฉ์ฃผ์: http://goo.gl/WGrqHq
์ค๋ฐ๊ฟ์ชฝ์ <br/>์๋ฆฌ๋จผํธ๋ก ๋ฐ๊ฟ์ฃผ๋ ํจ์
$str = nl2br($str);
ํ๊ทธ๋ฅผ ํ๊ทธ ๊ทธ๋๋ก ์ถ๋ ฅํ๋ ํจ์
$str = htmlspecialchars($str);
Server-Side Rendering With Laravel & Vue.js 2.5
https://vuejsdevelopers.com/2017/11/06/vue-js-laravel-server-side-rendering/
PATCH, DELETE ๋ฉ์๋์์ formdata ๊ฐ ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ
parse_str(file_get_contents('php://input'), $_PATCH);
์ด๋ฐ ํํ๋ก ๋ฐฐ์ด๋ก ๋ง๋ค์ด $_POST์ ๋น์ทํ๊ฒ ์ฌ์ฉํ ์ ์๋ค.
https://stackoverflow.com/questions/20572639/get-patch-request-data-in-php