Giter Site home page Giter Site logo

array()の書き方 about greenscrape HOT 3 CLOSED

cilenn avatar cilenn commented on July 19, 2024
array()の書き方

from greenscrape.

Comments (3)

topherbuckley avatar topherbuckley commented on July 19, 2024

了解です。ありがとうございます!PHPは初めてですので、そんなシンプルの書き方はまだ習ってないですよね。ありがとうございます。

2015-11-19 14:21 GMT+09:00 cilenn [email protected]:

$cybozu_headers = array();
$cybozu_headers[0] = "レコード番号";
$cybozu_headers[1] = "営業担当者";

$cybozu_headers[2] = "企業名";

この様にも書けます。シンプル。

$cybozu_headers = [];
$cybozu_headers = [ "レコード番号", "営業担当者", "企業名" ];


Reply to this email directly or view it on GitHub
#1.

from greenscrape.

cilenn avatar cilenn commented on July 19, 2024

$arr = []; の書き方は新しい書き方です。(PHP 5.4〜)
Laravelは推奨しています。
http://php.net/manual/en/language.types.array.php

phpは書き方がいろいろあるので、始めは混乱するかも。

from greenscrape.

topherbuckley avatar topherbuckley commented on July 19, 2024

多いですよね。了解です。これからその書き方を使います。

2015-11-19 14:30 GMT+09:00 cilenn [email protected]:

$arr = []; の書き方は新しい書き方です。(PHP 5.4〜)
Laravelは推奨しています。
http://php.net/manual/en/language.types.array.php

phpは書き方がいろいろあるので、始めは混乱するかも。


Reply to this email directly or view it on GitHub
#1 (comment)
.

from greenscrape.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.