• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » code
Trace: • Vyatta - 初期化

code

Search

You can find the results of your search below.

Exact match
  • Exact match
  • Starts with
  • Ends with
  • Contains
@11_php:03_function
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Matching pagenames:

  • 01 URLエンコード(urlencode, rawurlencode)

Fulltext results:

09 curl
8 Hits, Last modified: 6 years ago
====== 09 curl ====== <code php> $conn = curl_init(); curl_setopt($conn, CURLOPT_URL, $url); curl_setop... sult = json_decode($ret, true); return $result; </code> === Basic認証の場合 === <code php> curl_setopt($conn, CURLOPT_USERPWD, "User:Password"); </code> === cookieを利用する場合 === <code> $cookie=tempnam(s
05 substr()
6 Hits, Last modified: 5 years ago
05 substr() ====== 文字列の一部を取り出す ===== 書式 ===== <code> string substr(string s, int si) string substr(string s, int si, int sz) </code> 文字列 s のインデックス si から sz バイト分の文字列を取り出します。 途中から最後ま... を取り出す場合は、sz を省略できます。 ==== 例1 ==== 結果はABCとなります。 <code> <?PHP $str="ABCDEFG"; print substr($str,0,3); ?> </code> ==== 例2 ==== siにマイナスをの値を指定すると、後ろから指定した数までを求めます
03 strlen()
4 Hits, Last modified: 5 years ago
== 書式 ===== strlen("文字列、変数"); ===== 例1 ===== <code> <?PHP $str=strlen("asdqwe"); print($str); ?> </code> ===== 例2 ===== 日本語は2バイト文字なので、この場合12となる。 <code> <?PHP $str="こんにちは。"; print(strlen($str)); ?> </code> {{tag>php}}
06 echo()
4 Hits, Last modified: 11 years ago
列の出力、&color(Blue){括弧()は省略できる。}; ===== 書式 ===== <code> echo(文字列、または変数); </code> ===== 例 ===== <code> <?PHP $str="こんにちは。"; echo $str; ?> </code> {{tag>php:文字列}}
02 print()
2 Hits, Last modified: 11 years ago
== 書式 ===== print "文字列、または変数"; ===== 例 ===== <code php> <?PHP $str="こんにちわ。"; print $str; ?> </code> {{tag>php:文字列}}
04 chop()
2 Hits, Last modified: 11 years ago
= 例 ===== 空白の削除 <color red>※全角空白は削除できない</color> <code> <?PHP $str="abc "; print chop($str); ?> </code> {{tag>php:文字列}}
07 rtrim()
2 Hits, Last modified: 11 years ago
= 例 ===== 空白の削除 <color red>※全角空白は削除できない</color> <code php> <?PHP $str="abc "; print rtrim($str); ?> </code>
08 trim()
2 Hits, Last modified: 9 years ago
"\x0B" (ASCII 11 (0x0B)), 垂直タブ ===== 例 ===== <code php> <?PHP $str=" こんにちは "; echo trim($str); ?> </code> {{tag>php:function}}
10 portチェック関数
2 Hits, Last modified: 10 years ago
====== 10 portチェック関数 ====== <code> <?php function checkPort($host, $port, $timeout = 30){ $sock = @fso... meout); if(!$sock){ return false; } fclose($sock); return true; } ?> </code> {{tag>php:function}}

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki