Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
5分で分かるPHP7化する方法 〜アプリケーション編〜
Search
hypermkt
February 23, 2017
Programming
3
2.1k
5分で分かるPHP7化する方法 〜アプリケーション編〜
5分で分かるPHP7化する方法
〜アプリケーション編〜
バーチー / GMO PEPABO inc.
2017.02.22 PHP BLT #6
hypermkt
February 23, 2017
Tweet
Share
More Decks by hypermkt
See All by hypermkt
脆弱性から学ぶ Webセキュリティ Part2/study-web-security-from-vulnerability2
hypermkt
5
2.9k
脆弱性から学ぶ Webセキュリティ/study-web-security-from-vulnerability1
hypermkt
5
2.2k
モバイルアプリ向けAPI 開発を通じて学んだこと / learned-from-developing-mobile-app-api
hypermkt
3
3.9k
Passportのパスワードグラントで独自の認証を実装する方法 / how-to-implement-original-authentication-for-passport-password-grant
hypermkt
1
720
Webpackで作る Vueコンポーネント開発環境 / Creating the Vue component development with Webpack.
hypermkt
3
3.8k
あの問題解きました! / solved the code
hypermkt
0
300
Vue.js で作る日報アプリケーション ハンズオン / vue-js-handson-by-nippo
hypermkt
0
380
できるPHP7アップグレード / php7 upgrade
hypermkt
5
7.1k
小さな課題解決から始めるVue.js / Getting started Vue.js for small improvement
hypermkt
6
5.7k
Other Decks in Programming
See All in Programming
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
660
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
120
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
270
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
120
長期運用プロダクトの開発速度を維持し続けるためのリファクタリング実践例
wataruss
8
2.7k
Architecture Decision Record (ADR)
nearme_tech
PRO
1
690
Kotlin 2.0 and Beyond
antonarhipov
2
150
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
800
実践!難読化ガイド
mitchan
0
200
XStateでReactに秩序を与えたい
gizm000
0
730
全部見せます! クラシルリワードのSwiftTesting移行プロジェクト
uetyo
0
210
私のEbitengineの第一歩
qt_luigi
0
450
Featured
See All Featured
Atom: Resistance is Futile
akmur
261
25k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
36
1.7k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.6k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
36
6.8k
What the flash - Photography Introduction
edds
67
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.3k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
103
48k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
Transcript
ʙΞϓϦέʔγϣϯฤʙ όʔνʔ(.01&1"#0JOD 1)1#-5 Ͱ͔Δ1)1Խ͢Δํ๏
ࣗݾհ
ιϑτΣΞΤϯδχΞ <b1)1FS` b-BSBWFM` b7VFKT`> όʔνʔ!IZQFSNLU IUUQCMPHIZQFSNLUKQ
ϗʔϜϖʔδ࡞αʔϏεʮάʔϖʯ IUUQTHPPQFKQ
࠷ۙͷϏοάχϡʔε
1)1͔Β1)1ʹରԠ͠·ͨ͠ʂ
None
ࠓ͢͜ͱ w1)1Խʹ͍ͭͯ४උɺ࡞ۀฤ͔ΒཁΛ؆୯ʹ͝ հ
άʔϖͷঢ়گ
άʔϖͷঢ়گ wαʔϏε։͔࢝Βͷྺ࢙͋ΔαʔϏε w1&"3ΛΈ߹ΘͤͨಠࣗϑϨʔϜϫʔΫ wࢸΔॴʹࢄΒΔίϐϖؔɾɾɾ wΧόϨοδͷ͍Ϣχοτςετɾɾɾ
ΰʔϧ w1)1ͷαΠτΛΠϯϑϥɺ։ൃͷ໊̎ͰҎ ʹ1)1YʹΞοϓάϨʔυ͢Δ
1)1Խ
४උฤ
ࣗಈ ݕcςετcΤϥʔϩά௨ QIQDDʹΑΔޓੑͷࣗಈݕ ςετۦಈ։ൃ ϦΞϧλΠϜΤϥʔϩά௨
QIQDDʹΑΔޓੑͷࣗಈݕ w1)1ޓੑνΣοΧʔ w$*Ͱ࣮ߦ͠ɺࢦఠ͞ΕͨՕॴΛย͔ͬΒमਖ਼͢ Δ wIUUQTHJUIVCDPNTTUBMMFQIQDD
ςετۦಈ։ൃ w$*্Ͱ৽چ྆όʔδϣϯͰ1)16OJUΛ࣮ߦ͢Δ͜ͱ Ͱɺόάͷૣظൃݟ w&&ςετॏࢹɻՄೳͳݶΓΧόϨοδΛ ࢦ͢ɻ wॏͳΔେͳίʔυमਖ਼҆৺ͯ͠Ͱ͖Δ
ϦΞϧλΠϜΤϥʔϩά௨ w'MVFOUE /PSJLSBʹΑΔ1)1Τϥʔϩάͷ4MBDL௨ wόάɺোͷૣظൃݟ wΞοϓάϨʔυͷ࡞ۀ࿙Ε͙͢ʹݟ͔ͭΔ
࡞ۀฤ
1)1͔Β1)1Խͷࢁ͜Εʹਚ͖Δ w1)1Y͔Β1)1Yͷޙํޓੑͷͳ͍มߋͷ Өڹ͕େ͖͍ɻදతͳ̎ɻ w.Z42-ؔͷআ wFSFHܥؔͷআ IUUQQIQOFUNBOVBMKBNJHSBUJPOJODPNQBUJCMFQIQ
.Z42-ؔͷআରԠ
.Z42-ؔͷআରԠ w.Z42-ؔΛϥοϓͨ͠ಠࣗ%#ΫϥεΛར༻͍ͯ͠ ΔͷͰɺͦΕΛ1%0ʹஔ͖͑Δ wՕॴͰར༻ɾɾɾɺਏ͍
FSFHܥؔͷআରԠ
FSFH@SFQMBDFͷରԠྫ $replaced = ereg_replace('hoge', 'fuga', 'hoge hoge'); ↓ $replaced =
preg_replace('/hoge/', 'fuga', 'hoge hoge');
FSFHܥؔͷར༻ঢ়گ w1)1$4'JYFSͰमਖ਼ͭͭ͠ɺΓͳ͍ՕॴBHTFE Ͱஔ wՕॴͰར༻ɾɾɾɺਏ͍
EFQSFDBUFEରԠ
EFQSFDBUFEରԠ wكʹૺ۰͢Δ wEFQSFDBUFEͱɺকདྷతʹαϙʔτ͞Εͳ͍ؔ ༷ͷܯࠂ wಈ࡞্શ͘ແ͍ͷͰ༏ઌΊ
͜ΕΒ1)1ԽͷҰ෦Ͱ͢ʂ ͕͢͞ʹͰશ෦ແཧͰͨ͠ʂ
·ͱΊ
·ͱΊ w1)1Խ४උΛ͑Ε͘͠ͳ͍ʂαʔϏεن ɾঢ়ଶʹԠ͕͔͔ͯ࣌ؒ͡Δ͚ͩ wΞοϓάϨʔυۀʹࠜؾͱؾ߹͕͍Δ