This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| function solve1($file = "data.txt", $player = 1) { | |
| $data = getData($file); | |
| $data_end = end($data); | |
| // var_dump($data_end); | |
| // foreach ($data as $info) { | |
| // if($info[0] == '1' && $info[1] == 'A') { | |
| // $competitor_attack_history[] = $info; | |
| // } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| class A { | |
| public static function who() { | |
| echo __CLASS__; | |
| } | |
| public static function test() { | |
| static::who(); // Here comes Late Static Bindings | |
| } | |
| } | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| class A | |
| { | |
| public static function who() | |
| { | |
| echo __CLASS__; | |
| } | |
| public static function test() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var List = React.createClass({ | |
| render: function () { | |
| var titleText = 'Favorite ' + this.props.type; | |
| if (this.props.children instanceof Array) { | |
| titleText += 's'; | |
| } | |
| return ( | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var Button = React.createClass({ | |
| render: function () { | |
| return ( | |
| <button onClick={this.props.talk}> | |
| Click me! | |
| </button> | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var Greeting = React.createClass({ | |
| render: function () { | |
| if (this.props.signedIn == false) { | |
| return <h1>GO AWAY</h1>; | |
| } else { | |
| return <h1>Hi there, {this.props.name}!</h1>; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var Welcome = React.createClass({ | |
| render: function () { | |
| if (this.props.name == 'Wolfgang Amadeus Mozart') { | |
| return ( | |
| <h2> | |
| hello sir it is truly great to meet you here on the web | |
| </h2> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var PropsDisplayer = React.createClass({ | |
| render: function () { | |
| var stringProps = JSON.stringify(this.props); | |
| return ( | |
| <div> | |
| <h1>CHECK OUT MY PROPS OBJECT</h1> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var MyName = React.createClass({ | |
| // name property goes here: | |
| name: 'Simon Ha - Ha Anh Son', | |
| render: function () { | |
| return <h1>My name is {this.name}</h1>; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var friends = [ | |
| { | |
| title: "Yummmmmmm", | |
| src: "https://s3.amazonaws.com/codecademy-content/courses/React/react_photo-monkeyweirdo.jpg" | |
| }, | |
| { | |
| title: "Hey Guys! Wait Up!", | 
NewerOlder