search

Home  >  Q&A  >  body text

php - Class call conflict resolution

Two classes need to be used at the same time. The conflict cannot be resolved by renaming. How can the two classes be called at the same time?

PHP中文网PHP中文网2757 days ago375

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 13:03:02

    use NAMESPACE\Class1 as Class2;
    use NAMESPACE\Class1;

    reply
    0
  • Cancelreply