<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>h13i32maru</author_name>
  <author_url>https://blog.hatena.ne.jp/h13i32maru/</author_url>
  <blog_title>maru source</blog_title>
  <blog_url>https://blog.h13i32maru.jp/</blog_url>
  <categories>
    <anon>tech</anon>
  </categories>
  <description>「2.4.11キャスト演算子」からのメモ。 他の言語と同じように基本型であれば(int)や(string)を使うことで型を明示的に変換することができます。 一つだけ面白いなと思ったのはObjectをArrayに変換することができる点です。（逆もできます） &lt;?php class Person { public $name = &quot;Fred&quot;; protected $age = 35; private $sex = &quot;male&quot;; public function walk(){ echo &quot;teku-teku&quot;; } } $hoge = new Person; print_r($hoge); $f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.h13i32maru.jp%2Fentry%2F20100728%2F1280314618&quot; title=&quot;PHPのオブジェクトから配列へのキャスト - maru source&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://static.php.net/www.php.net/favicon.ico</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-28 19:56:58</published>
  <title>PHPのオブジェクトから配列へのキャスト</title>
  <type>rich</type>
  <url>https://blog.h13i32maru.jp/entry/20100728/1280314618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
