snipt

Ctrl+h for KB shortcuts

Text only

Pass Param to Function

function($url, $row_model) use ($model) 
https://snipt.net/embed/30d3589de8c7affcb5cfef5e4982a1e7/
/raw/30d3589de8c7affcb5cfef5e4982a1e7/
30d3589de8c7affcb5cfef5e4982a1e7
text
Text only
2
2024-05-19T20:03:50
True
False
False
Jan 02, 2017 at 08:38 PM
/api/public/snipt/5/
pass-param-to-function
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>function($url, $row_model) use ($model) </span></pre></div> </td></tr></table>
1
2
3
4
5
--- 
+++ 
@@ -1 +1,2 @@
-function($url, $row_model) use ($model) {+
+function($url, $row_model) use ($model) 
1
2
3
4
--- 
+++ 
@@ -0,0 +1 @@
+function($url, $row_model) use ($model) {